summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-02-24 12:12:15 +0000
committerCaolán McNamara <caolanm@redhat.com>2021-02-24 16:38:54 +0100
commitd2143755a50301796bab7aeb6cc1cf5af49378d3 (patch)
tree42eab907280f69a4eeea25866227299063e18da8 /sfx2
parente2c9ac71cec0f205b1d4864538e8158c22558296 (diff)
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@redhat.com>
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/dialog/backingwindow.cxx2
1 files changed, 1 insertions, 1 deletions
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,