diff options
Diffstat (limited to 'starmath/source/edit.cxx')
-rw-r--r-- | starmath/source/edit.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/starmath/source/edit.cxx b/starmath/source/edit.cxx index d77433a7df8e..27d33f889dfb 100644 --- a/starmath/source/edit.cxx +++ b/starmath/source/edit.cxx @@ -467,9 +467,8 @@ 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 ( dynamic_cast<const SmViewShell *>(pVShell) && - static_cast<SmViewShell*>(pVShell)->GetGraphicWindow().HasFocus() ) + SmViewShell* pVShell = GetView(); + if ( pVShell && pVShell->GetGraphicWindow().HasFocus() ) { GrabFocus(); } |