diff options
author | Sarper Akdemir <sarper.akdemir.extern@allotropia.de> | 2024-04-19 00:40:28 +0200 |
---|---|---|
committer | Thorsten Behrens <thorsten.behrens@allotropia.de> | 2024-05-01 15:00:33 +0200 |
commit | 57084baf1dfb150700fcf385003d989b08e2104a (patch) | |
tree | 25d13e647dec6b8783e639b90e4a2477a13f5a4b | |
parent | ca42eb73d360471b4259fd200aa86e547d237f0a (diff) |
related tdf#33603: sd: do not assume there's always a viewshell
feature/cib_contract49c
Change-Id: I171639150a84372e7e25b5246d4882c467edd58b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166271
Tested-by: Jenkins
Reviewed-by: Sarper Akdemir <sarper.akdemir.extern@allotropia.de>
-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 ) |