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>
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user