lotuswordpro/source/filter/lwpoleobject.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit cef68d0ce9a3f5f4a040fd3cd63ce7d63b241ac9
Author: Caolán McNamara <[email protected]>
Date:   Wed Jan 3 13:31:16 2018 +0000

    ofz#4901 Divide-by-zero
    
    Change-Id: Ifc38234b4a99b205681b18b0d0bd2ec2a65dc515
    Reviewed-on: https://gerrit.libreoffice.org/47317
    Tested-by: Jenkins <[email protected]>
    Reviewed-by: Caolán McNamara <[email protected]>
    Tested-by: Caolán McNamara <[email protected]>

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)
                     {
_______________________________________________
Libreoffice-commits mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to