summaryrefslogtreecommitdiff
path: root/sc/source/ui/view/tabview4.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-02-16 10:23:51 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-02-17 07:07:58 +0100
commite2e4798b35ecd33a09dda85c575d7a7709ab9414 (patch)
tree857c8bc0ee9061f630700921de79556b55e5725c /sc/source/ui/view/tabview4.cxx
parentd4be0bfedf8497ad3b4244aeeb0b761b5c6b128b (diff)
Revert "loplugin:changetoolsgen in sc" and reapply plugin
because I (a) forgot to insert parentheses which changes the meaning of some expressions and (b) I now use the AdjustFoo calls when changing unary operations, which reads much better This reverts commit 95fab7cbf2f0576d0f728bed8898b7ff769d90e6. Change-Id: Icbdcc0f4227d88812be12e18ba6961088db80c3e Reviewed-on: https://gerrit.libreoffice.org/49840 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source/ui/view/tabview4.cxx')
-rw-r--r--sc/source/ui/view/tabview4.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/ui/view/tabview4.cxx b/sc/source/ui/view/tabview4.cxx
index f4f92f4b2c7d..499b53136280 100644
--- a/sc/source/ui/view/tabview4.cxx
+++ b/sc/source/ui/view/tabview4.cxx
@@ -86,7 +86,7 @@ void ScTabView::ShowRefTip()
nEndY+1 == aViewData.GetEditViewRow() )
{
// then align at the upper border of edited cell
- aPos.setY( aPos.Y() - 2 ); // the three from above
+ aPos.AdjustY( -2 ); // the three from above
nFlags = ( nFlags & ~QuickHelpFlags::Top ) | QuickHelpFlags::Bottom;
}
@@ -282,8 +282,8 @@ void ScTabView::UpdateRef( SCCOL nCurX, SCROW nCurY, SCTAB nCurZ )
SCCOL nAddX = ( nEndX >= aMarkRange.aEnd.Col() ) ? 1 : 0;
SCROW nAddY = ( nEndY >= aMarkRange.aEnd.Row() ) ? 1 : 0;
Point aPos = aViewData.GetScrPos( nEndX+nAddX, nEndY+nAddY, aViewData.GetActivePart() );
- aPos.setX( aPos.X() + 8 );
- aPos.setY( aPos.Y() + 4 );
+ aPos.AdjustX(8 );
+ aPos.AdjustY(4 );
aPos = pWin->OutputToScreenPixel( aPos );
tools::Rectangle aRect( aPos, aPos );
QuickHelpFlags nAlign = QuickHelpFlags::Left|QuickHelpFlags::Top;