diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-03-05 09:42:28 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-03-05 13:41:37 +0100 |
commit | 98dc227bc7449d65950ee3eaf32254cc1dba52a6 (patch) | |
tree | 397d745bcee585f3d3f04fd81805e631d2432b8f | |
parent | 34d13d47cc7af0191f6d3a66d3c34acde79b97e4 (diff) |
use valueset as the menu parent
Change-Id: I3e8a841f838c4874e40d7d9e6abfbd61e2bb068d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111992
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r-- | sd/source/ui/sidebar/LayoutMenu.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sd/source/ui/sidebar/LayoutMenu.cxx b/sd/source/ui/sidebar/LayoutMenu.cxx index ca44ceb79871..981763dde084 100644 --- a/sd/source/ui/sidebar/LayoutMenu.cxx +++ b/sd/source/ui/sidebar/LayoutMenu.cxx @@ -603,7 +603,7 @@ void LayoutMenu::ShowContextMenu(const Point* pPos) // Setup the menu. ::tools::Rectangle aRect(aMenuPosition, Size(1, 1)); - weld::Window* pPopupParent = weld::GetPopupParent(*this, aRect); + weld::Widget* pPopupParent = mxLayoutValueSet->GetDrawingArea(); std::unique_ptr<weld::Builder> xBuilder(Application::CreateBuilder(pPopupParent, "modules/simpress/ui/layoutmenu.ui")); std::unique_ptr<weld::Menu> xMenu(xBuilder->weld_menu("menu")); |