summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-03-06 12:18:29 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-03-06 16:35:46 +0000
commit92204f06b53846cd60055df1757a0b20cbe5eb6e (patch)
tree674872cffda319c185740ced9f8abde362ca46ec /vcl
parent11abf53b9ddec37df333632eb06e3e28d31ffec2 (diff)
coverity#708643 nOffsetY missing from copy ctor
its normally always 0, so shrink the code based on that Change-Id: Ic9a4615f0ecb0713a00e4acd73485f99fd50a859
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/window/cursor.cxx4
1 files changed, 0 insertions, 4 deletions
diff --git a/vcl/source/window/cursor.cxx b/vcl/source/window/cursor.cxx
index 16bc80b8705c..669b05406070 100644
--- a/vcl/source/window/cursor.cxx
+++ b/vcl/source/window/cursor.cxx
@@ -133,12 +133,9 @@ void Cursor::ImplDraw()
mpData->mnPixSlant = pWindow->LogicToPixel( Size( mnSlant, 0 ) ).Width();
mpData->mnOrientation = mnOrientation;
mpData->mnDirection = mnDirection;
- long nOffsetY = pWindow->LogicToPixel( Size( 0, mnOffsetY ) ).Height();
// correct the position with the offset
- mpData->maPixPos.Y() -= nOffsetY;
mpData->maPixRotOff = mpData->maPixPos;
- mpData->maPixRotOff.Y() += nOffsetY;
// use width (as set in Settings) if size is 0,
if ( !mpData->maPixSize.Width() )
@@ -278,7 +275,6 @@ Cursor::Cursor()
mpData = NULL;
mpWindow = NULL;
mnSlant = 0;
- mnOffsetY = 0;
mnOrientation = 0;
mnDirection = 0;
mnStyle = 0;