From 6916368748d7f161673e2a5e5bd9b39b69fdad56 Mon Sep 17 00:00:00 2001 From: Laurent Balland-Poirier Date: Sun, 3 Jul 2016 23:10:29 +0200 Subject: tdf#100754 Allow text after forced denominator fraction For a fraction number format with forced denominator, stop detecting denominator value after digits Change-Id: I68281c5fc5b8a4c395932dff532179e694cf9827 Reviewed-on: https://gerrit.libreoffice.org/26907 Tested-by: Jenkins Reviewed-by: Eike Rathke Tested-by: Eike Rathke --- svl/source/numbers/zforscan.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'svl') diff --git a/svl/source/numbers/zforscan.cxx b/svl/source/numbers/zforscan.cxx index 8dd7ba30865c..b208364d5e95 100644 --- a/svl/source/numbers/zforscan.cxx +++ b/svl/source/numbers/zforscan.cxx @@ -1676,7 +1676,7 @@ sal_Int32 ImpSvNumberformatScan::FinalScan( OUString& rString ) { OUString sDiv; sal_uInt16 j = i; - while(j < nAnzStrings) + while(j < nAnzStrings && sStrArray[j][0] >= '0' && sStrArray[j][0] <= '9') { sDiv += sStrArray[j++]; } -- cgit