summaryrefslogtreecommitdiffstats
path: root/basic/source/sbx/sbxchar.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'basic/source/sbx/sbxchar.cxx')
-rw-r--r--basic/source/sbx/sbxchar.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/basic/source/sbx/sbxchar.cxx b/basic/source/sbx/sbxchar.cxx
index d25ccc083d7c..935bde34253e 100644
--- a/basic/source/sbx/sbxchar.cxx
+++ b/basic/source/sbx/sbxchar.cxx
@@ -20,6 +20,7 @@
#include <vcl/errcode.hxx>
#include <basic/sberrors.hxx>
#include "sbxconv.hxx"
+#include "rtlproto.hxx"
#include <rtl/math.hxx>
@@ -147,7 +148,7 @@ start:
{
double d;
SbxDataType t;
- if( ImpScan( *p->pOUString, d, t, nullptr, true ) != ERRCODE_NONE )
+ if( ImpScan( *p->pOUString, d, t, nullptr, !LibreOffice6FloatingPointMode() ) != ERRCODE_NONE )
nRes = 0;
else if( d > SbxMAXCHAR )
{