summaryrefslogtreecommitdiff
path: root/sal/rtl
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2013-10-17 18:01:47 +0200
committerEike Rathke <erack@redhat.com>2013-10-17 17:02:29 +0000
commit5f13aa4eae758e6592b73b3de3a62a5d94c45a9f (patch)
treea82c532d04202555c5cdde662ab2be565d2eed87 /sal/rtl
parent8a955a1f86c4578d4d0442baee7bbf4b6e37175a (diff)
fdo#70319 "exponent followed by at least on digit" also for special case 0.0
Change-Id: I07e7917417b8a22cf6d64f2b7a447f9084b9fa2d (cherry picked from commit 7bbd58eafc3146abcefc73d2d1ca6869bb47ef5a) Reviewed-on: https://gerrit.libreoffice.org/6294 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
Diffstat (limited to 'sal/rtl')
-rw-r--r--sal/rtl/math.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/sal/rtl/math.cxx b/sal/rtl/math.cxx
index f66039a4a3ad..3bca17156c3a 100644
--- a/sal/rtl/math.cxx
+++ b/sal/rtl/math.cxx
@@ -819,6 +819,10 @@ inline double stringToDouble(CharT const * pBegin, CharT const * pEnd,
// offset
while (p != pEnd && rtl::isAsciiDigit(*p))
++p;
+ if (p == pFirstExpDigit)
+ { // no digits in exponent, reset end of scan
+ p = pExponent;
+ }
}
else
{