Kaydet (Commit) 940808a5 authored tarafından Eike Rathke's avatar Eike Rathke

Handle decimalSeparatorAlternative, tdf#81671

Change-Id: I3a3d3b0683ea46cff5c023e911977ce5b2f5f032
üst 03cf4eaa
...@@ -109,6 +109,7 @@ bool ImplNumericProcessKeyInput( const KeyEvent& rKEvt, ...@@ -109,6 +109,7 @@ bool ImplNumericProcessKeyInput( const KeyEvent& rKEvt,
((cChar >= '0') && (cChar <= '9')) || ((cChar >= '0') && (cChar <= '9')) ||
(bThousandSep && string::equals(rLocaleDataWrapper.getNumThousandSep(), cChar)) || (bThousandSep && string::equals(rLocaleDataWrapper.getNumThousandSep(), cChar)) ||
(string::equals(rLocaleDataWrapper.getNumDecimalSep(), cChar) ) || (string::equals(rLocaleDataWrapper.getNumDecimalSep(), cChar) ) ||
(string::equals(rLocaleDataWrapper.getNumDecimalSepAlt(), cChar) ) ||
(cChar == '-')); (cChar == '-'));
} }
} }
...@@ -132,6 +133,8 @@ bool ImplNumericGetValue( const OUString& rStr, BigInt& rValue, ...@@ -132,6 +133,8 @@ bool ImplNumericGetValue( const OUString& rStr, BigInt& rValue,
// Find decimal sign's position // Find decimal sign's position
nDecPos = aStr.indexOf( rLocaleDataWrapper.getNumDecimalSep() ); nDecPos = aStr.indexOf( rLocaleDataWrapper.getNumDecimalSep() );
if (nDecPos < 0 && !rLocaleDataWrapper.getNumDecimalSepAlt().isEmpty())
nDecPos = aStr.indexOf( rLocaleDataWrapper.getNumDecimalSepAlt() );
if ( nDecPos != -1 ) if ( nDecPos != -1 )
{ {
......
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