sfx2/source/dialog/backingwindow.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit d2143755a50301796bab7aeb6cc1cf5af49378d3 Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Wed Feb 24 12:12:15 2021 +0000 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Wed Feb 24 16:38:54 2021 +0100 use GetMenuBarHeight to get menu bar height Change-Id: I632ead4c63a3064391366334d961b1767ead9af8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111480 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caol...@redhat.com> diff --git a/sfx2/source/dialog/backingwindow.cxx b/sfx2/source/dialog/backingwindow.cxx index 01b29e4dc197..ce04c182fd77 100644 --- a/sfx2/source/dialog/backingwindow.cxx +++ b/sfx2/source/dialog/backingwindow.cxx @@ -354,7 +354,7 @@ void BackingWindow::ApplyStyleSettings() { MenuBar* pMenuBar = pSystemWindow->GetMenuBar(); if (pMenuBar) - nMenuHeight = pMenuBar->ImplGetWindow()->GetOutputSizePixel().Height(); + nMenuHeight = pMenuBar->GetMenuBarHeight(); } // fdo#34392: we do the layout dynamically, the layout depends on the font, _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits