summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2017-10-24 21:34:39 +0200
committerEike Rathke <erack@redhat.com>2017-10-25 02:08:40 +0200
commitadbeb6d1f1268eca2c6eec57e8168b9322c5ebfd (patch)
tree637ffa1c9cd0d3d96951e99b1978970b69eee15b /vcl
parent3c5fe72ac31d7ba65b04025b1635b711d68b77b3 (diff)
Parsing locale decimal separator after OUStringBuffer::append(double) is wrong
OUStringBuffer::append(double) always uses '.' decimal separator. Change-Id: I5c937ef78e918e01cd98a329e22f1be8f524db44 Reviewed-on: https://gerrit.libreoffice.org/43792 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Jenkins <ci@libreoffice.org>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/control/field.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/control/field.cxx b/vcl/source/control/field.cxx
index 7105b654c232..76786223b122 100644
--- a/vcl/source/control/field.cxx
+++ b/vcl/source/control/field.cxx
@@ -234,7 +234,7 @@ bool ImplNumericGetValue( const OUString& rStr, sal_Int64& rValue,
double nFrac2Dec = nWholeNum + (double)nNum/nDenom; // Convert to double for floating point precision
aStrFrac.append(nFrac2Dec);
// Reconvert division result to string and parse
- nDecPos = aStrFrac.indexOf( rLocaleDataWrappper.getNumDecimalSep() );
+ nDecPos = aStrFrac.indexOf('.');
if ( nDecPos >= 0)
{
aStr1.append(aStrFrac.getStr(), nDecPos);