diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-10-11 08:53:27 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-10-11 08:53:27 +0100 |
commit | 77ba51a2dd1c37cce2ffb596f4544d9c8cfefeda (patch) | |
tree | 2db2fbcd2e73d7e7c5dc0d59efa390fdf0559247 /svtools/source | |
parent | CID#1103679 calm coverity re invalid iterators (diff) | |
download | core-77ba51a2dd1c37cce2ffb596f4544d9c8cfefeda.tar.gz core-77ba51a2dd1c37cce2ffb596f4544d9c8cfefeda.zip |
CID#1103695 avoid use of -1 here
Change-Id: I7097d26f301fffa79d04fe4f26aeddb32223d62c
Diffstat (limited to 'svtools/source')
-rw-r--r-- | svtools/source/filter/exportdialog.cxx | 2 |
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) |