summaryrefslogtreecommitdiff
path: root/sw/source/uibase/sidebar/PageOrientationPopup.cxx
diff options
context:
space:
mode:
authorMaxim Monastirsky <momonasmon@gmail.com>2017-09-27 17:34:38 +0300
committerMaxim Monastirsky <momonasmon@gmail.com>2017-10-01 01:20:15 +0200
commitcb9970400d0bbd73e508f25a67e1ad2c7dd28eb6 (patch)
tree9f71bb36d6eb300e560170e3bd014f946a7a18a5 /sw/source/uibase/sidebar/PageOrientationPopup.cxx
parent8b053a3c88c2b3e203856dbd9dabca6c935b0bde (diff)
Wayland: Make various popups work in the overflow toolbar
Were failing to show, with this warning: Gdk-WARNING **: Tried to map a popup with a non-top most parent Change-Id: Ib68b5fc9b3edb3d25a23b66397c13833a4d080ac Reviewed-on: https://gerrit.libreoffice.org/42936 Reviewed-by: Maxim Monastirsky <momonasmon@gmail.com> Tested-by: Maxim Monastirsky <momonasmon@gmail.com>
Diffstat (limited to 'sw/source/uibase/sidebar/PageOrientationPopup.cxx')
-rw-r--r--sw/source/uibase/sidebar/PageOrientationPopup.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/uibase/sidebar/PageOrientationPopup.cxx b/sw/source/uibase/sidebar/PageOrientationPopup.cxx
index ab9f5fbd523d..9b4f3fcb0f22 100644
--- a/sw/source/uibase/sidebar/PageOrientationPopup.cxx
+++ b/sw/source/uibase/sidebar/PageOrientationPopup.cxx
@@ -35,7 +35,7 @@ PageOrientationPopup::~PageOrientationPopup()
VclPtr<SfxPopupWindow> PageOrientationPopup::CreatePopupWindow()
{
- VclPtr<sw::sidebar::PageOrientationControl> pControl = VclPtr<sw::sidebar::PageOrientationControl>::Create(GetSlotId());
+ VclPtr<sw::sidebar::PageOrientationControl> pControl = VclPtr<sw::sidebar::PageOrientationControl>::Create(GetSlotId(), &GetToolBox());
pControl->StartPopupMode(&GetToolBox(), FloatWinPopupFlags::GrabFocus);
SetPopupWindow(pControl);