diff options
Diffstat (limited to 'scripting/source/basprov/basscript.cxx')
-rw-r--r-- | scripting/source/basprov/basscript.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/scripting/source/basprov/basscript.cxx b/scripting/source/basprov/basscript.cxx index 42935f05d179..37a2554ac955 100644 --- a/scripting/source/basprov/basscript.cxx +++ b/scripting/source/basprov/basscript.cxx @@ -100,8 +100,7 @@ namespace basprov // not interested in return; } - const SfxSimpleHint* pSimpleHint = dynamic_cast<const SfxSimpleHint*>( &rHint ); - if ( pSimpleHint && ( pSimpleHint->GetId() == SFX_HINT_DYING ) ) + if ( rHint.GetId() == SFX_HINT_DYING ) { m_documentBasicManager = nullptr; EndListening( rBC ); // prevent multiple notifications |