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

ofz#3760 Divide-by-zero

Change-Id: I951d5f167effe8cb856e28afec890218df698fde
Reviewed-on: https://gerrit.libreoffice.org/43760Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 6a880bbc
...@@ -3064,7 +3064,7 @@ void SdPage::CalculateHandoutAreas( SdDrawDocument& rModel, AutoLayout eLayout, ...@@ -3064,7 +3064,7 @@ void SdPage::CalculateHandoutAreas( SdDrawDocument& rModel, AutoLayout eLayout,
aPartArea.Height() = ((aArea.Height() - ((nRowCnt-1) * nGapH) ) / nRowCnt); aPartArea.Height() = ((aArea.Height() - ((nRowCnt-1) * nGapH) ) / nRowCnt);
SdrPage* pFirstPage = rModel.GetMasterSdPage(0, PageKind::Standard); SdrPage* pFirstPage = rModel.GetMasterSdPage(0, PageKind::Standard);
if ( pFirstPage ) if (pFirstPage && pFirstPage->GetWidth() && pFirstPage->GetHeight())
{ {
// scale actual size into handout rect // scale actual size into handout rect
double fScale = (double)aPartArea.Width() / (double)pFirstPage->GetWidth(); double fScale = (double)aPartArea.Width() / (double)pFirstPage->GetWidth();
......
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