diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-01-03 13:31:16 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-01-03 16:56:37 +0100 |
commit | cef68d0ce9a3f5f4a040fd3cd63ce7d63b241ac9 (patch) | |
tree | 75b90add8876fbcce43c31e806319bef69c633eb /lotuswordpro | |
parent | 27f005c0f90b1fd9bcdb4cab03921663d86c82e0 (diff) |
ofz#4901 Divide-by-zero
Change-Id: Ifc38234b4a99b205681b18b0d0bd2ec2a65dc515
Reviewed-on: https://gerrit.libreoffice.org/47317
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'lotuswordpro')
-rw-r--r-- | lotuswordpro/source/filter/lwpoleobject.cxx | 2 |
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) { |