Kaydet (Commit) 20abcfcf authored tarafından Michael Stahl's avatar Michael Stahl

sd: PVS-Studio V595 'mpViewShell' pointer could be null

Change-Id: I772aff5997f7630832a07c171cc49ac92908d855
üst 259799f7
...@@ -740,11 +740,15 @@ void Window::DataChanged( const DataChangedEvent& rDCEvt ) ...@@ -740,11 +740,15 @@ void Window::DataChanged( const DataChangedEvent& rDCEvt )
// factor of the frame to always display the whole page. // factor of the frame to always display the whole page.
const AllSettings* pOldSettings = rDCEvt.GetOldSettings (); const AllSettings* pOldSettings = rDCEvt.GetOldSettings ();
const AllSettings& rNewSettings = GetSettings (); const AllSettings& rNewSettings = GetSettings ();
if (pOldSettings) if (pOldSettings && mpViewShell)
{
if (pOldSettings->GetStyleSettings().GetScreenZoom() if (pOldSettings->GetStyleSettings().GetScreenZoom()
!= rNewSettings.GetStyleSettings().GetScreenZoom()) != rNewSettings.GetStyleSettings().GetScreenZoom())
{
mpViewShell->GetViewFrame()->GetDispatcher()-> mpViewShell->GetViewFrame()->GetDispatcher()->
Execute(SID_SIZE_PAGE, SfxCallMode::ASYNCHRON | SfxCallMode::RECORD); Execute(SID_SIZE_PAGE, SfxCallMode::ASYNCHRON | SfxCallMode::RECORD);
}
}
/* Rearrange or initiate Resize for scroll bars since the size of /* Rearrange or initiate Resize for scroll bars since the size of
the scroll bars my have changed. Within this, inside the resize- the scroll bars my have changed. Within this, inside the resize-
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment