diff options
Diffstat (limited to 'forms/source/xforms')
-rw-r--r-- | forms/source/xforms/datatypes.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/forms/source/xforms/datatypes.cxx b/forms/source/xforms/datatypes.cxx index f2fdb793d40a..0c24ace5525b 100644 --- a/forms/source/xforms/datatypes.cxx +++ b/forms/source/xforms/datatypes.cxx @@ -691,7 +691,7 @@ namespace xforms sal_Int32 nTotalDigits = 0; sal_Int32 nFractionDigits = 0; const sal_Unicode* pValue = rValue.getStr(); - for( ; pValue[n] != '.' && n < nLength; n++ ) + for( ; n < nLength && pValue[n] != '.'; n++ ) if( pValue[n] >= '0' && pValue[n] <= '9') nTotalDigits++; |