summaryrefslogtreecommitdiff
path: root/vcl/source/control
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2017-10-27 18:19:14 +0200
committerEike Rathke <erack@redhat.com>2017-10-27 18:29:45 +0200
commit03cf4eaaaf22a70386d4f8557f92dc00e57586c7 (patch)
treedf0d24c551a376a9c5918031efbb005700250cdd /vcl/source/control
parent7c5b9247c4425f1b733b62e365f15cf390c4bb63 (diff)
Handle decimalSeparatorAlternative, tdf#81671
Change-Id: Ica696322bfeea641452e73fd49bf89c33b6d4d96
Diffstat (limited to 'vcl/source/control')
-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( '/' );