[Libreoffice-commits] core.git: sd/source

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Fri Mar 5 12:42:21 UTC 2021


 sd/source/ui/sidebar/LayoutMenu.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 98dc227bc7449d65950ee3eaf32254cc1dba52a6
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Fri Mar 5 09:42:28 2021 +0000
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Fri Mar 5 13:41:37 2021 +0100

    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 at redhat.com>

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"));
 


More information about the Libreoffice-commits mailing list