From 15d00363bbf13f26f5de02f958923a80a4f652eb Mon Sep 17 00:00:00 2001 From: Laurent Balland-Poirier Date: Tue, 31 Mar 2015 20:33:15 +0200 Subject: [PATCH] Engineering notation: Slight optimisation Update of commit Ia18f9e150ca32aa9bbe133c082c3f9330e949f11 Change-Id: I5118619f2ab669f90e0377d9cabdba4778179581 Reviewed-on: https://gerrit.libreoffice.org/15100 Tested-by: Jenkins Reviewed-by: Eike Rathke Tested-by: Eike Rathke --- xmloff/source/style/xmlnumfi.cxx | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/xmloff/source/style/xmlnumfi.cxx b/xmloff/source/style/xmlnumfi.cxx index f0f67c429e2a..f7b9e824d3f0 100644 --- a/xmloff/source/style/xmlnumfi.cxx +++ b/xmloff/source/style/xmlnumfi.cxx @@ -1230,7 +1230,7 @@ void SvXMLNumFmtElementContext::EndElement() // exponential interval for engineering notation if( !aNumInfo.bGrouping && aNumInfo.nExpInterval > aNumInfo.nInteger ) { - for (sal_Int32 i=0; i nDigits ) + while ( rInfo.nExpInterval > nDigits ) { - for (sal_Int32 i=0; i