summaryrefslogtreecommitdiff
path: root/svl
diff options
context:
space:
mode:
authorLaurent Balland-Poirier <laurent.balland-poirier@laposte.net>2016-07-03 23:10:29 +0200
committerEike Rathke <erack@redhat.com>2016-07-05 08:01:52 +0000
commit6916368748d7f161673e2a5e5bd9b39b69fdad56 (patch)
tree1be85a6c94d2434bcfa1db3a1a1f7cb73e3e8e59 /svl
parent0f8ca94774ba66faa2b43af1f904e2886d85bf8a (diff)
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 <ci@libreoffice.org> Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
Diffstat (limited to 'svl')
-rw-r--r--svl/source/numbers/zforscan.cxx2
1 files changed, 1 insertions, 1 deletions
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++];
}