diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-10-24 12:21:52 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-10-24 18:23:39 +0200 |
commit | c8adea5b140c66a8127e5f7b73a22d059b8aa302 (patch) | |
tree | 3199606387ff2c62fcc5abd525e68e8e94dd63d4 /sd | |
parent | 6a880bbc34790b619986602a921d734995fdf1c0 (diff) |
ofz#3760 Divide-by-zero
Change-Id: I951d5f167effe8cb856e28afec890218df698fde
Reviewed-on: https://gerrit.libreoffice.org/43760
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/core/sdpage.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sd/source/core/sdpage.cxx b/sd/source/core/sdpage.cxx index fa815c4a629c..db9a24edb5b9 100644 --- a/sd/source/core/sdpage.cxx +++ b/sd/source/core/sdpage.cxx @@ -3064,7 +3064,7 @@ void SdPage::CalculateHandoutAreas( SdDrawDocument& rModel, AutoLayout eLayout, aPartArea.Height() = ((aArea.Height() - ((nRowCnt-1) * nGapH) ) / nRowCnt); SdrPage* pFirstPage = rModel.GetMasterSdPage(0, PageKind::Standard); - if ( pFirstPage ) + if (pFirstPage && pFirstPage->GetWidth() && pFirstPage->GetHeight()) { // scale actual size into handout rect double fScale = (double)aPartArea.Width() / (double)pFirstPage->GetWidth(); |