From f447854d0cd92647c66871bdc4b3d1f601f25382 Mon Sep 17 00:00:00 2001 From: "Chr. Rossmanith" Date: Wed, 6 Feb 2013 21:30:57 +0100 Subject: decrement for-loop variable instead of incrementing it Change-Id: Id989bcf78fc10eb29e9afd89c71e2deb2b98b4d3 --- vcl/source/control/field.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vcl') diff --git a/vcl/source/control/field.cxx b/vcl/source/control/field.cxx index 28b8c8e0193e..344b106d5ca3 100644 --- a/vcl/source/control/field.cxx +++ b/vcl/source/control/field.cxx @@ -139,7 +139,7 @@ static sal_Bool ImplNumericGetValue( const OUString& rStr, double& rValue, if ( (nFormat == 3) || (nFormat == 6) || // $1- || 1-$ (nFormat == 7) || (nFormat == 10) ) // 1$- || 1 $- { - for (sal_Int32 i = aStr.getLength()-1; i > 0; i++ ) + for (sal_Int32 i = aStr.getLength()-1; i > 0; --i ) { if ( (aStr[i] >= '0') && (aStr[i] <= '9') ) break; -- cgit