diff options
Diffstat (limited to 'sd/source/ui/view/sdwindow.cxx')
-rw-r--r-- | sd/source/ui/view/sdwindow.cxx | 6 |
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- |