diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-01-03 15:22:21 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-01-03 19:55:24 +0100 |
commit | 20a639f34f524fa455382bd31a8c4351bc46e6bb (patch) | |
tree | b2dc54dddb0d995016fa9d3e57d56a4016ff5119 /lotuswordpro/source/filter/lwpgrfobj.cxx | |
parent | 20ac7089ad833d0d70c8c3e88a58d20a88530c42 (diff) |
ofz#4923 Divide-by-zero
Change-Id: I141884930c4f148f4d29a9a679642ab4b898bbc1
Reviewed-on: https://gerrit.libreoffice.org/47324
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'lotuswordpro/source/filter/lwpgrfobj.cxx')
-rw-r--r-- | lotuswordpro/source/filter/lwpgrfobj.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lotuswordpro/source/filter/lwpgrfobj.cxx b/lotuswordpro/source/filter/lwpgrfobj.cxx index aaa7f688c6c6..a615e83e79bd 100644 --- a/lotuswordpro/source/filter/lwpgrfobj.cxx +++ b/lotuswordpro/source/filter/lwpgrfobj.cxx @@ -510,7 +510,7 @@ void LwpGraphicObject::CreateGrafObject() fSclGrafWidth = fOrgGrafWidth; fSclGrafHeight = fOrgGrafHeight; } - else if (nScalemode & LwpLayoutScale::MAINTAIN_ASPECT_RATIO) + else if (nScalemode & LwpLayoutScale::MAINTAIN_ASPECT_RATIO && fOrgGrafHeight != 0.0 && fDisFrameHeight != 0.0) { if (fOrgGrafWidth/fOrgGrafHeight >= fDisFrameWidth/fDisFrameHeight) { |