summaryrefslogtreecommitdiffstats
path: root/svx/source/svdraw/svdotext.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svx/source/svdraw/svdotext.cxx')
-rw-r--r--svx/source/svdraw/svdotext.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/svx/source/svdraw/svdotext.cxx b/svx/source/svdraw/svdotext.cxx
index d9a80a9cfb0b..f979818ee073 100644
--- a/svx/source/svdraw/svdotext.cxx
+++ b/svx/source/svdraw/svdotext.cxx
@@ -1376,6 +1376,9 @@ void SdrTextObj::autoFitTextForCompatibility(SdrOutliner& rOutliner, const Size&
}
Size aCurrentTextBoxSize = rOutliner.CalcTextSizeNTP();
+ if (aCurrentTextBoxSize.Height() == 0)
+ return;
+
tools::Long nExtendTextBoxBy = -50;
aCurrentTextBoxSize.extendBy(0, nExtendTextBoxBy);
double fCurrentFitFactor = double(rTextBoxSize.Height()) / aCurrentTextBoxSize.Height();