diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-06-18 09:26:53 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-06-18 11:12:08 +0100 |
commit | 2f9bd27f641f5a8d570bdd4a07758f6f879e5f7c (patch) | |
tree | ff5cf6617fde06202bbb476845622d00a4a6a54b | |
parent | cd29db561357295f0e6e719088053e39fb404469 (diff) |
coverity#1132707 Unintended sign extension
Change-Id: I54bcaf13efca35b009bf0e07a50872b2cdc52722
-rw-r--r-- | svx/source/dialog/dlgctrl.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/svx/source/dialog/dlgctrl.cxx b/svx/source/dialog/dlgctrl.cxx index ddc9e0cc2bd8..637ca5abb94c 100644 --- a/svx/source/dialog/dlgctrl.cxx +++ b/svx/source/dialog/dlgctrl.cxx @@ -757,8 +757,8 @@ void SvxRectCtl::SetCS(CTL_STYLE eNew) //Logic Pixel long SvxPixelCtl::PointToIndex(const Point &aPt) const { - sal_Int32 nX = aPt.X() * nLines / aRectSize.Width(); - sal_Int32 nY = aPt.Y() * nLines / aRectSize.Height(); + long nX = aPt.X() * nLines / aRectSize.Width(); + long nY = aPt.Y() * nLines / aRectSize.Height(); return nX + nY * nLines ; } |