[Libreoffice-commits] core.git: sfx2/source
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Wed Feb 24 15:39:53 UTC 2021
sfx2/source/dialog/backingwindow.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit d2143755a50301796bab7aeb6cc1cf5af49378d3
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Wed Feb 24 12:12:15 2021 +0000
Commit: Caolán McNamara <caolanm at 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 <caolanm at 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,
More information about the Libreoffice-commits
mailing list