summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-06-18 09:26:53 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-06-18 11:12:08 +0100
commit2f9bd27f641f5a8d570bdd4a07758f6f879e5f7c (patch)
treeff5cf6617fde06202bbb476845622d00a4a6a54b
parentcd29db561357295f0e6e719088053e39fb404469 (diff)
coverity#1132707 Unintended sign extension
Change-Id: I54bcaf13efca35b009bf0e07a50872b2cdc52722
-rw-r--r--svx/source/dialog/dlgctrl.cxx4
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 ;
}