summaryrefslogtreecommitdiff
path: root/basic/source/classes
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2025-01-23 18:09:03 +0500
committerMike Kaganski <mike.kaganski@collabora.com>2025-01-23 20:14:46 +0100
commit63e7a70ad1a6a8ec4190ab510f683d2fc9dea417 (patch)
tree668df2277c59d5e2f34cfc6517a02c24d96336e1 /basic/source/classes
parent073022ec122e75931395d6f25de2d19ffbac058e (diff)
tdf#164811: swap the "if IsCompatibility()" branches to match other places
Commit 9cdb73ff28c4cd6380412468f34ff10e46292a07 (INTEGRATION: CWS jl5vba (1.25.94); FILE MERGED, 2004-03-17) has introduced handling of decimal, currency, and date for VBASupport mode in sbunoobj.cxx. However, in getUnoTypeForSbxBaseType, it changed the behavior for date type in the non-VBASupport mode, obviously by mistake. This change swaps the code in the 'if' branches, to what appears to be the original intention. Change-Id: I88cddf7cec1a980f56de96ae1c5e64d8e7630b77 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/180637 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'basic/source/classes')
-rw-r--r--basic/source/classes/sbunoobj.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/basic/source/classes/sbunoobj.cxx b/basic/source/classes/sbunoobj.cxx
index 25a395e7a6bf..871e02e76f1f 100644
--- a/basic/source/classes/sbunoobj.cxx
+++ b/basic/source/classes/sbunoobj.cxx
@@ -831,9 +831,9 @@ static Type getUnoTypeForSbxBaseType( SbxDataType eType )
case SbxDATE: {
SbiInstance* pInst = GetSbData()->pInst;
if( pInst && pInst->IsCompatibility() )
- aRetType = cppu::UnoType<double>::get();
- else
aRetType = cppu::UnoType<oleautomation::Date>::get();
+ else
+ aRetType = cppu::UnoType<double>::get();
}
break;
case SbxSTRING: aRetType = cppu::UnoType<OUString>::get(); break;