summaryrefslogtreecommitdiff
path: root/vcl/source/control/field.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/source/control/field.cxx')
-rw-r--r--vcl/source/control/field.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/vcl/source/control/field.cxx b/vcl/source/control/field.cxx
index 76786223b122..220da283ba86 100644
--- a/vcl/source/control/field.cxx
+++ b/vcl/source/control/field.cxx
@@ -72,6 +72,7 @@ bool ImplNumericProcessKeyInput( const KeyEvent& rKEvt,
((cChar >= '0') && (cChar <= '9')) ||
string::equals(rLocaleDataWrappper.getNumDecimalSep(), cChar) ||
(bThousandSep && string::equals(rLocaleDataWrappper.getNumThousandSep(), cChar)) ||
+ string::equals(rLocaleDataWrappper.getNumDecimalSepAlt(), cChar) ||
(cChar == '-'));
}
}
@@ -97,6 +98,8 @@ bool ImplNumericGetValue( const OUString& rStr, sal_Int64& rValue,
// find position of decimal point
nDecPos = aStr.indexOf( rLocaleDataWrappper.getNumDecimalSep() );
+ if (nDecPos < 0 && !rLocaleDataWrappper.getNumDecimalSepAlt().isEmpty())
+ nDecPos = aStr.indexOf( rLocaleDataWrappper.getNumDecimalSepAlt() );
// find position of fraction
nFracDivPos = aStr.indexOf( '/' );