summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--svx/source/styles/CommonStylePreviewRenderer.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/svx/source/styles/CommonStylePreviewRenderer.cxx b/svx/source/styles/CommonStylePreviewRenderer.cxx
index 277948d3b6bc..5f12d209f0bf 100644
--- a/svx/source/styles/CommonStylePreviewRenderer.cxx
+++ b/svx/source/styles/CommonStylePreviewRenderer.cxx
@@ -295,7 +295,7 @@ void CommonStylePreviewRenderer::CalcRenderSize()
while(true);
double fRatio = 1;
- if (mnHeight > mnMaxHeight)
+ if (mnHeight > mnMaxHeight && mnHeight != 0)
fRatio = double(mnMaxHeight) / mnHeight;
mnHeight *= fRatio;