diff options
Diffstat (limited to 'basic/source/classes/sbxmod.cxx')
-rw-r--r-- | basic/source/classes/sbxmod.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/basic/source/classes/sbxmod.cxx b/basic/source/classes/sbxmod.cxx index b735933ea9b9..c7b62b70278c 100644 --- a/basic/source/classes/sbxmod.cxx +++ b/basic/source/classes/sbxmod.cxx @@ -1388,7 +1388,7 @@ void SbModule::GlobalRunInit( bool bBasicStart ) { // If no Basic-Start, only initialise, if the module is not initialised if( !bBasicStart ) - if( !(pImage && !pImage->bInit) ) + if( !pImage || pImage->bInit ) return; // Initialise GlobalInitErr-Flag for Compiler-Error @@ -2081,7 +2081,7 @@ ErrCode SbMethod::Call( SbxValue* pRet, SbxVariable* pCaller ) // #100883 Own Broadcast for SbMethod void SbMethod::Broadcast( SfxHintId nHintId ) { - if( !(mpBroadcaster && !IsSet( SbxFlagBits::NoBroadcast )) ) + if( !mpBroadcaster || IsSet( SbxFlagBits::NoBroadcast ) ) return; // Because the method could be called from outside, test here once again |