diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-06-18 09:32:50 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-06-18 11:12:09 +0100 |
commit | be5b361a00484dd9f963230eb699e5f3ed6a1c02 (patch) | |
tree | c632e0ef24ce0d36e42fed47688c1a7b67443daf /sw/source/uibase | |
parent | coverity#983448 Unintended sign extension (diff) | |
download | core-be5b361a00484dd9f963230eb699e5f3ed6a1c02.tar.gz core-be5b361a00484dd9f963230eb699e5f3ed6a1c02.zip |
coverity#736903 Unintended sign extension
Change-Id: I66c8953bb482126f0862ea4351c3c0348a3cfd5e
Diffstat (limited to 'sw/source/uibase')
-rw-r--r-- | sw/source/uibase/app/applab.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/uibase/app/applab.cxx b/sw/source/uibase/app/applab.cxx index 5e7ba147dc37..59015aeb3f32 100644 --- a/sw/source/uibase/app/applab.cxx +++ b/sw/source/uibase/app/applab.cxx @@ -94,9 +94,9 @@ static const SwFrmFmt *lcl_InsertBCText( SwWrtShell& rSh, const SwLabItem& rItem //anchor frame to page aSet.Put( SwFmtAnchor( FLY_AT_PAGE, nPhyPageNum ) ); - aSet.Put( SwFmtHoriOrient( rItem.lLeft + nCol * rItem.lHDist, + aSet.Put( SwFmtHoriOrient( rItem.lLeft + static_cast<SwTwips>(nCol) * rItem.lHDist, text::HoriOrientation::NONE, text::RelOrientation::PAGE_FRAME ) ); - aSet.Put( SwFmtVertOrient( rItem.lUpper + nRow * rItem.lVDist, + aSet.Put( SwFmtVertOrient( rItem.lUpper + static_cast<SwTwips>(nRow) * rItem.lVDist, text::VertOrientation::NONE, text::RelOrientation::PAGE_FRAME ) ); const SwFrmFmt *pFmt = rSh.NewFlyFrm(aSet, true, &rFmt ); // Insert Fly OSL_ENSURE( pFmt, "Fly not inserted" ); |