diff options
Diffstat (limited to 'starmath/source/edit.cxx')
-rw-r--r-- | starmath/source/edit.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/starmath/source/edit.cxx b/starmath/source/edit.cxx index d7d7d0e2e805..e7806a41723e 100644 --- a/starmath/source/edit.cxx +++ b/starmath/source/edit.cxx @@ -414,7 +414,7 @@ void SmEditWindow::KeyInput(const KeyEvent& rKEvt) { bool bCallBase = true; SfxViewShell* pViewShell = GetView(); - if ( pViewShell && pViewShell->ISA(SmViewShell) ) + if ( pViewShell && dynamic_cast<const SmViewShell *>(pViewShell) != nullptr ) { // Terminate possible InPlace mode bCallBase = !pViewShell->Escape(); @@ -482,7 +482,7 @@ void SmEditWindow::KeyInput(const KeyEvent& rKEvt) // SFX has maybe called a slot of the view and thus (because of a hack in SFX) // set the focus to the view SfxViewShell* pVShell = GetView(); - if ( pVShell && pVShell->ISA(SmViewShell) && + if ( pVShell && dynamic_cast<const SmViewShell *>(pVShell) != nullptr && static_cast<SmViewShell*>(pVShell)->GetGraphicWindow().HasFocus() ) { GrabFocus(); |