From 32294e11a06e216a859fcdccaa5678f98a1c9c25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Wed, 18 Jun 2014 17:01:08 +0100 Subject: [PATCH] coverity#706052 Unintended sign extension Change-Id: I5e9b8a8809f9736038f20493d1a24bbbd8846dbd --- sd/source/core/sdpage.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(nColCnt) * nRowCnt); Size aPartArea, aSize; aPartArea.Width() = ((aArea.Width() - ((nColCnt-1) * nGapW) ) / nColCnt);