summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2016-07-20 16:30:16 +0100
committerAndras Timar <andras.timar@collabora.com>2016-07-22 15:00:11 +0200
commitd11ba6d14c364cb79089cb2947476227f1316e00 (patch)
treece80380a8f8eeff7134aff7eda0ab14b869d4ba0
parent02c22a1f345ea61b5cac4981ca6fde4ede78774a (diff)
Resolves: tdf#98778 fix parsing of exponents
regression from... commit 9e9f39d171cafa035d7b8e74187e25c3581cb89d Date: Tue Mar 19 23:23:16 2013 +0100 resolved rhbz#919020 Basic CDbl() and CSng() scan localized number Change-Id: I96535fd9bc9ec59d6e07739a3118c96eb2d8bd05 Reviewed-on: https://gerrit.libreoffice.org/27342 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com> (cherry picked from commit 2aed0d49d7891b9360916b65771222810aeeac96) Reviewed-on: https://gerrit.libreoffice.org/27350 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com> (cherry picked from commit 43d1f9bfd4300e8bf5bcb631dcc2d849b4490d3a)
-rw-r--r--basic/source/sbx/sbxscan.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/basic/source/sbx/sbxscan.cxx b/basic/source/sbx/sbxscan.cxx
index 2d4a62948567..2f90601463da 100644
--- a/basic/source/sbx/sbxscan.cxx
+++ b/basic/source/sbx/sbxscan.cxx
@@ -160,6 +160,13 @@ SbxError ImpScan( const OUString& rWSrc, double& nVal, SbxDataType& rType,
eScanType = SbxDOUBLE;
aBuf[ p - pStart ] = 'E';
p++;
+ if (*p == '+')
+ ++p;
+ else if (*p == '-')
+ {
+ aBuf.append('-');
+ ++p;
+ }
}
else
{