diff options
author | Eike Rathke <erack@redhat.com> | 2017-10-27 18:19:35 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2017-10-27 18:29:46 +0200 |
commit | 940808a512ff637f161cc3eb1de0362b2f95318c (patch) | |
tree | a3b73d88bf24e10bc268110e72471f59e276c991 /vcl/source | |
parent | 03cf4eaaaf22a70386d4f8557f92dc00e57586c7 (diff) |
Handle decimalSeparatorAlternative, tdf#81671
Change-Id: I3a3d3b0683ea46cff5c023e911977ce5b2f5f032
Diffstat (limited to 'vcl/source')
-rw-r--r-- | vcl/source/control/longcurr.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/vcl/source/control/longcurr.cxx b/vcl/source/control/longcurr.cxx index 8dd0ec192870..805da72f1eea 100644 --- a/vcl/source/control/longcurr.cxx +++ b/vcl/source/control/longcurr.cxx @@ -109,6 +109,7 @@ bool ImplNumericProcessKeyInput( const KeyEvent& rKEvt, ((cChar >= '0') && (cChar <= '9')) || (bThousandSep && string::equals(rLocaleDataWrapper.getNumThousandSep(), cChar)) || (string::equals(rLocaleDataWrapper.getNumDecimalSep(), cChar) ) || + (string::equals(rLocaleDataWrapper.getNumDecimalSepAlt(), cChar) ) || (cChar == '-')); } } @@ -132,6 +133,8 @@ bool ImplNumericGetValue( const OUString& rStr, BigInt& rValue, // Find decimal sign's position nDecPos = aStr.indexOf( rLocaleDataWrapper.getNumDecimalSep() ); + if (nDecPos < 0 && !rLocaleDataWrapper.getNumDecimalSepAlt().isEmpty()) + nDecPos = aStr.indexOf( rLocaleDataWrapper.getNumDecimalSepAlt() ); if ( nDecPos != -1 ) { |