summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-10-11 08:53:27 +0100
committerCaolán McNamara <caolanm@redhat.com>2013-10-11 08:53:27 +0100
commit77ba51a2dd1c37cce2ffb596f4544d9c8cfefeda (patch)
tree2db2fbcd2e73d7e7c5dc0d59efa390fdf0559247 /svtools
parent44fa08ed89f61add6ba6fb0eb1b5c243b53c350f (diff)
CID#1103695 avoid use of -1 here
Change-Id: I7097d26f301fffa79d04fe4f26aeddb32223d62c
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/filter/exportdialog.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/svtools/source/filter/exportdialog.cxx b/svtools/source/filter/exportdialog.cxx
index 706715bec5b1..b935acf1d096 100644
--- a/svtools/source/filter/exportdialog.cxx
+++ b/svtools/source/filter/exportdialog.cxx
@@ -951,7 +951,7 @@ void ExportDialog::updateControls()
if (nInd != -1)
aEst = aEst.replaceAt( nInd, 2, ImpValueOfInKB( nRawFileSize ) );
- if ( nRealFileSize )
+ if ( nRealFileSize && nInd != -1 )
{
nInd = aEst.indexOf( "%", nInd );
if (nInd != -1)