[Libreoffice-commits] core.git: basic/source
Tomoyuki Kubota (via logerrit)
logerrit at kemper.freedesktop.org
Sat Jun 29 06:31:08 UTC 2019
basic/source/basmgr/basmgr.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 00f4722032cd3abb02180d2df6b9cb580736cb7c
Author: Tomoyuki Kubota <himajin100000 at gmail.com>
AuthorDate: Wed May 29 12:41:30 2019 +0900
Commit: Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Sat Jun 29 08:30:15 2019 +0200
tdf#125564: WatchWindow should report correct type for global constants
Change-Id: Ibe078e61385e78aab3933d70af14f4b38806fcf6
Reviewed-on: https://gerrit.libreoffice.org/73142
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>
diff --git a/basic/source/basmgr/basmgr.cxx b/basic/source/basmgr/basmgr.cxx
index 88e12775f6ce..71674e7825d0 100644
--- a/basic/source/basmgr/basmgr.cxx
+++ b/basic/source/basmgr/basmgr.cxx
@@ -1404,8 +1404,8 @@ uno::Any BasicManager::SetGlobalUNOConstant( const OUString& rName, const uno::A
SbxVariable* pVariable = pStandardLib->Find( rName, SbxClassType::Object );
if ( pVariable )
aOldValue = sbxToUnoValue( pVariable );
-
- SbxObjectRef xUnoObj = GetSbUnoObject( rName, _rValue );
+ SbxObjectRef xUnoObj = GetSbUnoObject( _rValue.getValueType ().getTypeName () , _rValue );
+ xUnoObj->SetName(rName);
xUnoObj->SetFlag( SbxFlagBits::DontStore );
pStandardLib->Insert( xUnoObj.get() );
More information about the Libreoffice-commits
mailing list