diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-03-05 09:49:07 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-03-05 14:45:37 +0100 |
commit | 98675e5465a3293a964059dc5e6fd70511de4093 (patch) | |
tree | 0251ed56b9927e0b4e1bedafad70ad48fd47b545 | |
parent | f8891b7f87957cc3f66805adf9b1e35a2189946b (diff) |
use valueset as the menu parent
Change-Id: I99c4bc5110ce494287342db5c2d4c42b1a79ee38
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111993
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r-- | sd/source/ui/sidebar/MasterPagesSelector.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sd/source/ui/sidebar/MasterPagesSelector.cxx b/sd/source/ui/sidebar/MasterPagesSelector.cxx index 45f1968f4177..95068a207ec8 100644 --- a/sd/source/ui/sidebar/MasterPagesSelector.cxx +++ b/sd/source/ui/sidebar/MasterPagesSelector.cxx @@ -207,11 +207,11 @@ void MasterPagesSelector::ShowContextMenu(const Point* pPos) aPosition = *pPos; // Setup the menu. - std::unique_ptr<weld::Builder> xBuilder(Application::CreateBuilder(nullptr, GetContextMenuUIFile())); + weld::Widget* pParent = mxPreviewValueSet->GetDrawingArea(); + std::unique_ptr<weld::Builder> xBuilder(Application::CreateBuilder(pParent, GetContextMenuUIFile())); std::unique_ptr<weld::Menu> xMenu(xBuilder->weld_menu("menu")); ProcessPopupMenu(*xMenu); ::tools::Rectangle aRect(aPosition, Size(1,1)); - weld::Window* pParent = weld::GetPopupParent(*this, aRect); // Show the menu. ExecuteCommand(xMenu->popup_at_rect(pParent, aRect)); } |