summaryrefslogtreecommitdiff
path: root/sfx2/source/sidebar/DeckLayouter.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-02-16 09:20:09 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-02-16 13:24:23 +0100
commit3987c2b0e8477152e4f85ce7fa1b70eb38e171f7 (patch)
treeb6973e97085fcb0a7457828763faddbfc703b2a8 /sfx2/source/sidebar/DeckLayouter.cxx
parent4beed2ba7335fdb211aca7f70a144ffecf90a781 (diff)
Revert "loplugin:changetoolsgen in sfx2" 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 c82802a9ee3514d0b98fbb3783abbc17ec02c3b6. Change-Id: I44a5316ebd3d0bde6bd75ad24e9a4406cd8e8db0 Reviewed-on: https://gerrit.libreoffice.org/49836 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2/source/sidebar/DeckLayouter.cxx')
-rw-r--r--sfx2/source/sidebar/DeckLayouter.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sfx2/source/sidebar/DeckLayouter.cxx b/sfx2/source/sidebar/DeckLayouter.cxx
index cfc2f14a5e4b..2b7f7df382b5 100644
--- a/sfx2/source/sidebar/DeckLayouter.cxx
+++ b/sfx2/source/sidebar/DeckLayouter.cxx
@@ -234,7 +234,7 @@ tools::Rectangle LayoutPanels (
SetupVerticalScrollBar(rVerticalScrollBar, nContentHeight, aBox.GetHeight());
const sal_Int32 nUsedHeight (PlacePanels(rLayoutItems, nWidth, eMode, rScrollContainer));
- aBox.SetTop( aBox.Top() + nUsedHeight );
+ aBox.AdjustTop(nUsedHeight );
return aBox;
}