summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-10-22 13:36:17 +0100
committerCaolán McNamara <caolanm@redhat.com>2018-10-22 15:33:21 +0200
commit1a6552c5d96626112608eee204f51bdc71da1fc2 (patch)
treea3402f1612174f6ea207fba7a82d3795125e789a
parent3929eab0c0b329d6631cf7fdba7204c3690e9b8a (diff)
Resolves: tdf#120785 no parent set via status bar
Change-Id: Ibdc0f75b18330b77e18293f7485e165d2133290e Reviewed-on: https://gerrit.libreoffice.org/62179 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--sd/source/ui/func/fuprlout.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sd/source/ui/func/fuprlout.cxx b/sd/source/ui/func/fuprlout.cxx
index e6822e7f7be3..5cea52322ca9 100644
--- a/sd/source/ui/func/fuprlout.cxx
+++ b/sd/source/ui/func/fuprlout.cxx
@@ -39,6 +39,7 @@
#include <app.hrc>
#include <DrawDocShell.hxx>
#include <SlideSorterViewShell.hxx>
+#include <Window.hxx>
#include <unprlout.hxx>
#include <unchss.hxx>
#include <unmovss.hxx>
@@ -170,7 +171,7 @@ void FuPresentationLayout::DoExecute( SfxRequest& rReq )
else
{
SdAbstractDialogFactory* pFact = SdAbstractDialogFactory::Create();
- ScopedVclPtr<AbstractSdPresLayoutDlg> pDlg(pFact->CreateSdPresLayoutDlg(rReq.GetFrameWeld(), mpDocSh, aSet));
+ ScopedVclPtr<AbstractSdPresLayoutDlg> pDlg(pFact->CreateSdPresLayoutDlg(mpWindow ? mpWindow->GetFrameWeld() : nullptr, mpDocSh, aSet));
sal_uInt16 nResult = pDlg->Execute();