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

ofz#4999 Divide-by-zero

Change-Id: I80b4d8a4d2abdfb54fe60a880555ea1ff62af987
Reviewed-on: https://gerrit.libreoffice.org/47503Tested-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 cdaf72c3
......@@ -162,6 +162,8 @@ void LwpGraphicOleObject::GetGrafScaledSize(double & fWidth, double & fHeight)
if (fWidth/fHeight >= fDisFrameWidth/fDisFrameHeight)
{
fSclGrafWidth = fDisFrameWidth;
if (fWidth == 0.0)
throw o3tl::divide_by_zero();
fSclGrafHeight = (fDisFrameWidth/fWidth) * fHeight;
}
else
......
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