Kaydet (Commit) f447854d authored tarafından Chr. Rossmanith's avatar Chr. Rossmanith

decrement for-loop variable instead of incrementing it

Change-Id: Id989bcf78fc10eb29e9afd89c71e2deb2b98b4d3
üst 584612a9
...@@ -139,7 +139,7 @@ static sal_Bool ImplNumericGetValue( const OUString& rStr, double& rValue, ...@@ -139,7 +139,7 @@ static sal_Bool ImplNumericGetValue( const OUString& rStr, double& rValue,
if ( (nFormat == 3) || (nFormat == 6) || // $1- || 1-$ if ( (nFormat == 3) || (nFormat == 6) || // $1- || 1-$
(nFormat == 7) || (nFormat == 10) ) // 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') ) if ( (aStr[i] >= '0') && (aStr[i] <= '9') )
break; break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment