From 77ba51a2dd1c37cce2ffb596f4544d9c8cfefeda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Fri, 11 Oct 2013 08:53:27 +0100 Subject: [PATCH] CID#1103695 avoid use of -1 here Change-Id: I7097d26f301fffa79d04fe4f26aeddb32223d62c --- svtools/source/filter/exportdialog.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)