diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-07-20 16:30:16 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-07-21 14:11:13 +0000 |
commit | a6649901d3e01b3751b3e1660ac29b2248bf3c25 (patch) | |
tree | 890f74f2bc101fdc992a29a13ed270d9ca1ed8d9 | |
parent | 10b1fb083b3f66fb4099f84e94a1b4cd52ed1b06 (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)
Reviewed-on: https://gerrit.libreoffice.org/27351
-rw-r--r-- | basic/source/sbx/sbxscan.cxx | 7 |
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 { |