diff options
author | Andreas Heinisch <andreas.heinisch@yahoo.de> | 2020-06-15 22:44:27 +0200 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2020-06-16 22:59:30 +0200 |
commit | 0f6e012057bf0d1cc339154e8af6586d9615a37f (patch) | |
tree | 9bd3419a87a694cf6313b1bf87bc6c19e1003169 /basic/source/runtime/runtime.cxx | |
parent | tdf#134038 use mnCheckWidthReq to avoid text width calculation (diff) | |
download | core-0f6e012057bf0d1cc339154e8af6586d9615a37f.tar.gz core-0f6e012057bf0d1cc339154e8af6586d9615a37f.zip |
tdf#133913 - create variable with Variant/Type in StepLOADNC
During the loading of numeric constants in StepLOADNC, create variables
of type Variant and convert them to the requested type, i.e.
Variant/Type in order to prevent type conversion errors, when they are
passed to a method with variant parameter types.
Change-Id: I2ab0111b5b53dd2de9523ba7cf12bd2519d050b0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/96402
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'basic/source/runtime/runtime.cxx')
-rw-r--r-- | basic/source/runtime/runtime.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/basic/source/runtime/runtime.cxx b/basic/source/runtime/runtime.cxx index ff5d7936247b..c2182e26b77a 100644 --- a/basic/source/runtime/runtime.cxx +++ b/basic/source/runtime/runtime.cxx @@ -2827,6 +2827,8 @@ void SbiRuntime::StepLOADNC( sal_uInt32 nOp1 ) } SbxVariable* p = new SbxVariable( eType ); p->PutDouble( n ); + // tdf#133913 - create variable with Variant/Type in order to prevent type conversion errors + p->ResetFlag( SbxFlagBits::Fixed ); PushVar( p ); } |