diff options
author | Tor Lillqvist <tml@iki.fi> | 2021-12-02 12:37:07 +0200 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2021-12-04 21:54:56 +0100 |
commit | d3ecf88b2820edfab0b5bba6fca5790d9ea7505e (patch) | |
tree | 4f454845667ab82c689666007974fdc3f8a9126b /basic/source/sbx/sbxbool.cxx | |
parent | nss: upgrade to release 3.73 (diff) | |
download | core-d3ecf88b2820edfab0b5bba6fca5790d9ea7505e.tar.gz core-d3ecf88b2820edfab0b5bba6fca5790d9ea7505e.zip |
Make the tdf#97983 changes to BASIC optional based on an environment variable
If you want to keep the string to floating point conversion semantics
in BASIC as they were in LibreOffice 6, set the
LIBREOFFICE6FLOATINGPOINTMODE environment variable to some non-empty
value.
Change-Id: I13d6d5d834e1bb81ef8df489db2b1da79f01dfc5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125803
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Diffstat (limited to 'basic/source/sbx/sbxbool.cxx')
-rw-r--r-- | basic/source/sbx/sbxbool.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/basic/source/sbx/sbxbool.cxx b/basic/source/sbx/sbxbool.cxx index 723939fb0c4a..7248072ce039 100644 --- a/basic/source/sbx/sbxbool.cxx +++ b/basic/source/sbx/sbxbool.cxx @@ -21,6 +21,7 @@ #include <basic/sberrors.hxx> #include "sbxconv.hxx" #include "sbxres.hxx" +#include "rtlproto.hxx" enum SbxBOOL ImpGetBool( const SbxValues* p ) { @@ -80,7 +81,7 @@ enum SbxBOOL ImpGetBool( const SbxValues* p ) double n; SbxDataType t; sal_uInt16 nLen = 0; - if( ImpScan( *p->pOUString, n, t, &nLen, true ) == ERRCODE_NONE ) + if( ImpScan( *p->pOUString, n, t, &nLen, !LibreOffice6FloatingPointMode() ) == ERRCODE_NONE ) { if( nLen == p->pOUString->getLength() ) { |