summaryrefslogtreecommitdiff
path: root/sd/source/ui/view/sdwindow.cxx
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2015-03-12 20:09:28 +0100
committerMichael Stahl <mstahl@redhat.com>2015-03-12 20:22:19 +0100
commit20abcfcf3e76892fe1edbf5afcae5024ada738c0 (patch)
treeb3db90ff58c9d2f8c787b94e926062c4ab5887ee /sd/source/ui/view/sdwindow.cxx
parent259799f750d33321d7da8523c674e3c775f75005 (diff)
sd: PVS-Studio V595 'mpViewShell' pointer could be null
Change-Id: I772aff5997f7630832a07c171cc49ac92908d855
Diffstat (limited to 'sd/source/ui/view/sdwindow.cxx')
-rw-r--r--sd/source/ui/view/sdwindow.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/sd/source/ui/view/sdwindow.cxx b/sd/source/ui/view/sdwindow.cxx
index 6c70e19ce348..8a79750c3173 100644
--- a/sd/source/ui/view/sdwindow.cxx
+++ b/sd/source/ui/view/sdwindow.cxx
@@ -740,11 +740,15 @@ void Window::DataChanged( const DataChangedEvent& rDCEvt )
// factor of the frame to always display the whole page.
const AllSettings* pOldSettings = rDCEvt.GetOldSettings ();
const AllSettings& rNewSettings = GetSettings ();
- if (pOldSettings)
+ if (pOldSettings && mpViewShell)
+ {
if (pOldSettings->GetStyleSettings().GetScreenZoom()
!= rNewSettings.GetStyleSettings().GetScreenZoom())
+ {
mpViewShell->GetViewFrame()->GetDispatcher()->
Execute(SID_SIZE_PAGE, SfxCallMode::ASYNCHRON | SfxCallMode::RECORD);
+ }
+ }
/* Rearrange or initiate Resize for scroll bars since the size of
the scroll bars my have changed. Within this, inside the resize-