summaryrefslogtreecommitdiff
path: root/lotuswordpro/source/filter/lwpoleobject.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'lotuswordpro/source/filter/lwpoleobject.cxx')
-rw-r--r--lotuswordpro/source/filter/lwpoleobject.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/lotuswordpro/source/filter/lwpoleobject.cxx b/lotuswordpro/source/filter/lwpoleobject.cxx
index 1e0a00e54e77..66cee7b776e6 100644
--- a/lotuswordpro/source/filter/lwpoleobject.cxx
+++ b/lotuswordpro/source/filter/lwpoleobject.cxx
@@ -154,7 +154,7 @@ void LwpGraphicOleObject::GetGrafScaledSize(double & fWidth, double & fHeight)
fSclGrafWidth = fWidth;
fSclGrafHeight = fHeight;
}
- else if (nScalemode & LwpLayoutScale::MAINTAIN_ASPECT_RATIO)
+ else if (nScalemode & LwpLayoutScale::MAINTAIN_ASPECT_RATIO && fHeight != 0.0 && fDisFrameHeight != 0.0)
{
if (fWidth/fHeight >= fDisFrameWidth/fDisFrameHeight)
{