summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
Diffstat (limited to 'starmath')
-rw-r--r--starmath/source/document.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/starmath/source/document.cxx b/starmath/source/document.cxx
index 81187d376c4b..a62d1e949d1a 100644
--- a/starmath/source/document.cxx
+++ b/starmath/source/document.cxx
@@ -373,7 +373,7 @@ Size SmDocShell::GetSize()
ArrangeFormula();
aRet = mpTree->GetSize();
- if ( !aRet.Width() )
+ if ( !aRet.Width() || aRet.Width() == 1 )
aRet.setWidth( 2000 );
else
aRet.AdjustWidth(maFormat.GetDistance( DIS_LEFTSPACE ) +