Kaydet (Commit) cef68d0c authored tarafından Caolán McNamara's avatar Caolán McNamara

ofz#4901 Divide-by-zero

Change-Id: Ifc38234b4a99b205681b18b0d0bd2ec2a65dc515
Reviewed-on: https://gerrit.libreoffice.org/47317Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 27f005c0
......@@ -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)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment