diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-06-18 17:01:08 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-06-19 10:26:47 +0100 |
commit | 32294e11a06e216a859fcdccaa5678f98a1c9c25 (patch) | |
tree | ab776138fdcf90fdcd913342dbb1989f25d76f3d /sd | |
parent | 9947032c4c6a772df888323338df699f54087013 (diff) |
coverity#706052 Unintended sign extension
Change-Id: I5e9b8a8809f9736038f20493d1a24bbbd8846dbd
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 30ea98df6027..c718ed2f9faf 100644 --- a/sd/source/core/sdpage.cxx +++ b/sd/source/core/sdpage.cxx @@ -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); |