diff options
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/view/output2.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/view/output2.cxx b/sc/source/ui/view/output2.cxx index fc3535e1dc1a..e6d745eb6e08 100644 --- a/sc/source/ui/view/output2.cxx +++ b/sc/source/ui/view/output2.cxx @@ -1722,7 +1722,7 @@ void ScOutputData::DrawStrings( bool bPixelToLogic ) long nAvailable = aAreaParam.maAlignRect.GetWidth() - nTotalMargin; long nScaleSize = aVars.GetTextSize().Width(); // without margin - if ( nScaleSize > 0 ) // 0 if the text is empty (formulas, number formats) + if ( nAvailable > 0 && nScaleSize > 0 ) // 0 if the text is empty (formulas, number formats) { long nScale = ( nAvailable * 100 ) / nScaleSize; |