coverity#706052 Unintended sign extension

Change-Id: I5e9b8a8809f9736038f20493d1a24bbbd8846dbd
This commit is contained in:
Caolán McNamara 2014-06-18 17:01:08 +01:00
parent 9947032c4c
commit 32294e11a0

View File

@ -3012,7 +3012,7 @@ void SdPage::CalculateHandoutAreas( SdDrawDocument& rModel, AutoLayout eLayout,
break;
}
rAreas.resize( nColCnt * nRowCnt );
rAreas.resize(static_cast<size_t>(nColCnt) * nRowCnt);
Size aPartArea, aSize;
aPartArea.Width() = ((aArea.Width() - ((nColCnt-1) * nGapW) ) / nColCnt);