summaryrefslogtreecommitdiff
path: root/svtools/source/brwbox/datwin.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-02-19 16:21:28 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-02-20 12:54:55 +0100
commit7b8a0b7c0dcf8380a6bd2d458d0e20ffc6a5d355 (patch)
tree388b2fba4742064ed47c51f0a2688cb53de405ce /svtools/source/brwbox/datwin.cxx
parentb7da3f2d2518a8b92b0242e311bb31267acd1cd0 (diff)
loplugin:changetoolsgen in svtools
Change-Id: I63271ee3126368868db7e7e859aaaa76b15e559e Reviewed-on: https://gerrit.libreoffice.org/50023 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svtools/source/brwbox/datwin.cxx')
-rw-r--r--svtools/source/brwbox/datwin.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/svtools/source/brwbox/datwin.cxx b/svtools/source/brwbox/datwin.cxx
index 2ca807be8276..2385b7d8b907 100644
--- a/svtools/source/brwbox/datwin.cxx
+++ b/svtools/source/brwbox/datwin.cxx
@@ -362,7 +362,7 @@ void BrowserDataWin::StartDrag( sal_Int8 _nAction, const Point& _rPosPixel )
if ( !GetParent()->bRowDividerDrag )
{
Point aEventPos( _rPosPixel );
- aEventPos.Y() += GetParent()->GetTitleHeight();
+ aEventPos.AdjustY(GetParent()->GetTitleHeight() );
GetParent()->StartDrag( _nAction, aEventPos );
}
}
@@ -394,7 +394,7 @@ void BrowserDataWin::Command( const CommandEvent& rEvt )
bInCommand = false;
}
- aEventPos.Y() += GetParent()->GetTitleHeight();
+ aEventPos.AdjustY(GetParent()->GetTitleHeight() );
CommandEvent aEvt( aEventPos, rEvt.GetCommand(),
rEvt.IsMouseEvent(), rEvt.GetEventData() );
bInCommand = true;
@@ -528,7 +528,7 @@ void BrowserDataWin::Tracking( const TrackingEvent& rTEvt )
Point aMousePos = rTEvt.GetMouseEvent().GetPosPixel();
// stop resizing at our bottom line
if ( aMousePos.Y() > GetOutputSizePixel().Height() )
- aMousePos.Y() = GetOutputSizePixel().Height();
+ aMousePos.setY( GetOutputSizePixel().Height() );
if ( rTEvt.IsTrackingEnded() )
{