diff options
-rw-r--r-- | sd/source/ui/view/sdwindow.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sd/source/ui/view/sdwindow.cxx b/sd/source/ui/view/sdwindow.cxx index 5c64e4d1dda4..753e6921e461 100644 --- a/sd/source/ui/view/sdwindow.cxx +++ b/sd/source/ui/view/sdwindow.cxx @@ -738,7 +738,8 @@ void Window::LoseFocus() { mnTicks = 0; vcl::Window::LoseFocus (); - GetViewShell()->onLoseFocus(); + if (mpViewShell) + mpViewShell->onLoseFocus(); } /** @@ -748,7 +749,8 @@ void Window::GrabFocus() { mnTicks = 0; vcl::Window::GrabFocus (); - GetViewShell()->onGrabFocus(); + if (mpViewShell) + mpViewShell->onGrabFocus(); } void Window::DataChanged( const DataChangedEvent& rDCEvt ) |