[Libreoffice-commits] core.git: vcl/source

Eike Rathke erack at redhat.com
Wed Oct 25 00:09:05 UTC 2017


 vcl/source/control/field.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit adbeb6d1f1268eca2c6eec57e8168b9322c5ebfd
Author: Eike Rathke <erack at redhat.com>
Date:   Tue Oct 24 21:34:39 2017 +0200

    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 at redhat.com>
    Tested-by: Jenkins <ci at libreoffice.org>

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);


More information about the Libreoffice-commits mailing list