diff options
Diffstat (limited to 'starmath/source/smmod.cxx')
-rw-r--r-- | starmath/source/smmod.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/starmath/source/smmod.cxx b/starmath/source/smmod.cxx index 771528a0552d..d6c7f7e09d63 100644 --- a/starmath/source/smmod.cxx +++ b/starmath/source/smmod.cxx @@ -180,11 +180,10 @@ SmModule::~SmModule() void SmModule::ApplyColorConfigValues( const svtools::ColorConfig &rColorCfg ) { //invalidate all graphic and edit windows - const TypeId aSmViewTypeId = TYPE(SmViewShell); SfxViewShell* pViewShell = SfxViewShell::GetFirst(); while (pViewShell) { - if ((pViewShell->IsA(aSmViewTypeId))) + if ((dynamic_cast<const SmViewShell *>(pViewShell) != nullptr)) { SmViewShell *pSmView = static_cast<SmViewShell *>(pViewShell); pSmView->GetGraphicWindow().ApplyColorConfigValues( rColorCfg ); |