diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-07-28 09:01:19 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-07-28 16:52:06 +0200 |
commit | e8493f9349d18cbcb323930a9bf200c542a72d62 (patch) | |
tree | a682aeb0343b0379a2a9d2d9ea39a7f096115050 /sdext | |
parent | ff41cf1b8dbeb36b8824257acb5c5ba272415108 (diff) |
loplugin:collapseif
Change-Id: I69bfafa97c66ef944cc6ae35c7e2f66d0430d6a4
Reviewed-on: https://gerrit.libreoffice.org/76496
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sdext')
-rw-r--r-- | sdext/source/presenter/PresenterToolBar.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sdext/source/presenter/PresenterToolBar.cxx b/sdext/source/presenter/PresenterToolBar.cxx index 5d065da4454e..e6e19f03e908 100644 --- a/sdext/source/presenter/PresenterToolBar.cxx +++ b/sdext/source/presenter/PresenterToolBar.cxx @@ -752,9 +752,8 @@ void PresenterToolBar::Layout ( nX+aPartSizes[nIndex].Width, nY+aTotalSize.Height); // Add space for gaps between elements. - if (rxPart->size() > 1) - if (bIsHorizontal) - aBoundingBox.X2 += (rxPart->size() - 1) * nGapWidth; + if (rxPart->size() > 1 && bIsHorizontal) + aBoundingBox.X2 += (rxPart->size() - 1) * nGapWidth; LayoutPart(rxCanvas, rxPart, aBoundingBox, aPartSizes[nIndex], bIsHorizontal); bIsHorizontal = !bIsHorizontal; |