summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--starmath/source/document.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/starmath/source/document.cxx b/starmath/source/document.cxx
index f6bc36c7d325..58a4c073bb09 100644
--- a/starmath/source/document.cxx
+++ b/starmath/source/document.cxx
@@ -1225,8 +1225,10 @@ void SmDocShell::SetVisArea(const tools::Rectangle & rVisArea)
aNewRect.SetPos(Point());
- if (! aNewRect.Right()) aNewRect.SetRight( 2000 );
- if (! aNewRect.Bottom()) aNewRect.SetBottom( 1000 );
+ if (aNewRect.IsWidthEmpty())
+ aNewRect.SetRight( 2000 );
+ if (aNewRect.IsHeightEmpty())
+ aNewRect.SetBottom( 1000 );
bool bIsEnabled = IsEnableSetModified();
if ( bIsEnabled )