summaryrefslogtreecommitdiffstats
path: root/sfx2
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-02-11 11:44:30 +0200
committerNoel Grandin <noel@peralex.com>2014-02-12 08:59:03 +0200
commit609f2cd62086da67d9a9dd85a5b7b2a7348318b4 (patch)
treec8c357143592e229e45ef72f444b565928a5e798 /sfx2
parentWaE: unused function 'hasNonEmpty' (diff)
downloadcore-609f2cd62086da67d9a9dd85a5b7b2a7348318b4.tar.gz
core-609f2cd62086da67d9a9dd85a5b7b2a7348318b4.zip
coverity#1130420 improper use of negative
Change-Id: I463764faffb1013a8c8d10c64695289080c3205c
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/view/viewfrm.cxx2
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();