diff options
author | Noel Grandin <noel@peralex.com> | 2014-02-11 11:44:30 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-02-12 08:59:03 +0200 |
commit | 609f2cd62086da67d9a9dd85a5b7b2a7348318b4 (patch) | |
tree | c8c357143592e229e45ef72f444b565928a5e798 /sfx2/source/view | |
parent | 4e432a178f231bb5147c75dff36687407bb9af43 (diff) |
coverity#1130420 improper use of negative
Change-Id: I463764faffb1013a8c8d10c64695289080c3205c
Diffstat (limited to 'sfx2/source/view')
-rw-r--r-- | sfx2/source/view/viewfrm.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sfx2/source/view/viewfrm.cxx b/sfx2/source/view/viewfrm.cxx index e8eeb3979ff7..f6944a9d3dee 100644 --- a/sfx2/source/view/viewfrm.cxx +++ b/sfx2/source/view/viewfrm.cxx @@ -2570,7 +2570,7 @@ void CutLines( OUString& rStr, sal_Int32 nStartLine, sal_Int32 nLines, sal_Bool rStr = rStr.copy( 0, nStartPos ); rStr += aEndStr; } - if ( bEraseTrailingEmptyLines ) + if ( bEraseTrailingEmptyLines && nStartPos != -1 ) { sal_Int32 n = nStartPos; sal_Int32 nLen = rStr.getLength(); |