summaryrefslogtreecommitdiff
path: root/vcl/qt5/QtMenu.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/qt5/QtMenu.cxx')
-rw-r--r--vcl/qt5/QtMenu.cxx2
1 files changed, 0 insertions, 2 deletions
diff --git a/vcl/qt5/QtMenu.cxx b/vcl/qt5/QtMenu.cxx
index 5b76706f22b3..284c45f8eee7 100644
--- a/vcl/qt5/QtMenu.cxx
+++ b/vcl/qt5/QtMenu.cxx
@@ -881,10 +881,8 @@ bool QtMenu::ShowNativePopupMenu(FloatingWindow* pWin, const tools::Rectangle& r
const VclPtr<vcl::Window> xParent = pWin->ImplGetWindowImpl()->mpRealParent;
AbsoluteScreenPixelRectangle aFloatRect = FloatingWindow::ImplConvertToAbsPos(xParent, rRect);
- // tdf#154447 Menu bar height has to be added
QtFrame* pFrame = static_cast<QtFrame*>(pWin->ImplGetFrame());
assert(pFrame);
- aFloatRect.SetPosY(aFloatRect.getY() + pFrame->menuBarOffset());
const QRect aRect = toQRect(aFloatRect, 1 / pFrame->devicePixelRatioF());
mpQMenu->exec(aRect.bottomLeft());