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@collabora.co.uk>
This commit is contained in:
parent
086798f679
commit
00f4722032
@ -1404,8 +1404,8 @@ uno::Any BasicManager::SetGlobalUNOConstant( const OUString& rName, const uno::A
|
|||||||
SbxVariable* pVariable = pStandardLib->Find( rName, SbxClassType::Object );
|
SbxVariable* pVariable = pStandardLib->Find( rName, SbxClassType::Object );
|
||||||
if ( pVariable )
|
if ( pVariable )
|
||||||
aOldValue = sbxToUnoValue( pVariable );
|
aOldValue = sbxToUnoValue( pVariable );
|
||||||
|
SbxObjectRef xUnoObj = GetSbUnoObject( _rValue.getValueType ().getTypeName () , _rValue );
|
||||||
SbxObjectRef xUnoObj = GetSbUnoObject( rName, _rValue );
|
xUnoObj->SetName(rName);
|
||||||
xUnoObj->SetFlag( SbxFlagBits::DontStore );
|
xUnoObj->SetFlag( SbxFlagBits::DontStore );
|
||||||
pStandardLib->Insert( xUnoObj.get() );
|
pStandardLib->Insert( xUnoObj.get() );
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user