Kaydet (Commit) 0dc47739 authored tarafından Noel Grandin's avatar Noel Grandin

handle empty tools::Rectangle in SmDocShell::SetVisArea

Change-Id: Iccea3b686b02e03552fa5c836ee5a29103930d04
Reviewed-on: https://gerrit.libreoffice.org/72056
Tested-by: Jenkins
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst f7936b8c
...@@ -1225,8 +1225,10 @@ void SmDocShell::SetVisArea(const tools::Rectangle & rVisArea) ...@@ -1225,8 +1225,10 @@ void SmDocShell::SetVisArea(const tools::Rectangle & rVisArea)
aNewRect.SetPos(Point()); aNewRect.SetPos(Point());
if (! aNewRect.Right()) aNewRect.SetRight( 2000 ); if (aNewRect.IsWidthEmpty())
if (! aNewRect.Bottom()) aNewRect.SetBottom( 1000 ); aNewRect.SetRight( 2000 );
if (aNewRect.IsHeightEmpty())
aNewRect.SetBottom( 1000 );
bool bIsEnabled = IsEnableSetModified(); bool bIsEnabled = IsEnableSetModified();
if ( bIsEnabled ) if ( bIsEnabled )
......
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