CID#1103695 avoid use of -1 here

Change-Id: I7097d26f301fffa79d04fe4f26aeddb32223d62c
This commit is contained in:
Caolán McNamara 2013-10-11 08:53:27 +01:00
parent 44fa08ed89
commit 77ba51a2dd

View File

@ -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)