summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-06-18 17:01:08 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-06-19 10:26:47 +0100
commit32294e11a06e216a859fcdccaa5678f98a1c9c25 (patch)
treeab776138fdcf90fdcd913342dbb1989f25d76f3d /sd
parent9947032c4c6a772df888323338df699f54087013 (diff)
coverity#706052 Unintended sign extension
Change-Id: I5e9b8a8809f9736038f20493d1a24bbbd8846dbd
Diffstat (limited to 'sd')
-rw-r--r--sd/source/core/sdpage.cxx2
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);