[Libreoffice-commits] core.git: sdext/source
Srijan Bhatia (via logerrit)
logerrit at kemper.freedesktop.org
Sun Jul 12 22:35:40 UTC 2020
sdext/source/presenter/PresenterToolBar.cxx | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit ffe503b62f9a508285ed06ef977f91604130579a
Author: Srijan Bhatia <srijanbhatiasun at gmail.com>
AuthorDate: Sun Jul 12 20:29:28 2020 +0530
Commit: Adolfo Jayme Barrientos <fitojb at ubuntu.com>
CommitDate: Mon Jul 13 00:35:02 2020 +0200
tdf#90978 add gap between the exit button and the right edge of the toolbar
Change-Id: I703f3bd21101daeaa58ce1c0659e275335f26727
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98601
Tested-by: Jenkins
Reviewed-by: Adolfo Jayme Barrientos <fitojb at ubuntu.com>
diff --git a/sdext/source/presenter/PresenterToolBar.cxx b/sdext/source/presenter/PresenterToolBar.cxx
index e3f2d6da7cba..4f700339dc5a 100644
--- a/sdext/source/presenter/PresenterToolBar.cxx
+++ b/sdext/source/presenter/PresenterToolBar.cxx
@@ -718,6 +718,9 @@ void PresenterToolBar::Layout (
nGapCount += maElementContainer.size()-1;
}
+ // Done to introduce gap between the end of the toolbar and the last button
+ aTotalSize.Width += gnGapSize/2;
+
// Calculate the minimal size so that the window size of the tool bar
// can be adapted accordingly.
maMinimalSize = aTotalSize;
More information about the Libreoffice-commits
mailing list