summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorChr. Rossmanith <ChrRossmanith@gmx.de>2013-02-06 21:30:57 +0100
committerChr. Rossmanith <ChrRossmanith@gmx.de>2013-02-07 08:40:08 +0100
commitf447854d0cd92647c66871bdc4b3d1f601f25382 (patch)
tree5a02dd98bc2173a545a9a3f0ceeb88621565aff6 /vcl
parent584612a9290445924c3c13d763381ced74c5ebea (diff)
decrement for-loop variable instead of incrementing it
Change-Id: Id989bcf78fc10eb29e9afd89c71e2deb2b98b4d3
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/control/field.cxx2
1 files changed, 1 insertions, 1 deletions
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;