summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSarper Akdemir <sarper.akdemir.extern@allotropia.de>2024-04-19 00:40:28 +0200
committerSarper Akdemir <sarper.akdemir@allotropia.de>2024-04-30 16:26:05 +0200
commita5e08f0631b7cd3976c9fc1afe8317ecc3b406a2 (patch)
treeae4784752a6a82df66699c86b0273e288d2b109f
parenttdf#33603: make the notes pane handle placeholder text on focus (diff)
downloadcore-private/quwex/notespanesquashed.tar.gz
core-private/quwex/notespanesquashed.zip
related tdf#33603: sd: do not assume there's always a viewshell private/quwex/notespanesquashed
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.cxx6
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 )