summaryrefslogtreecommitdiff
path: root/sw/source/uibase/shells/tabsh.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-03-02 15:30:01 +0000
committerCaolán McNamara <caolanm@redhat.com>2018-03-02 21:50:57 +0100
commit6eb1affe21d98097c539619af617f0bbe5b8abd1 (patch)
treebd0eb658bd8dae0dacd833e2a5bbd2e770479f5a /sw/source/uibase/shells/tabsh.cxx
parent810cfc0106ae0b1874681f7a8c79c36186aefcca (diff)
weld split table dialog
Change-Id: I329a57fa09e6eb0fe75b93b0726d9b7718426693 Reviewed-on: https://gerrit.libreoffice.org/50639 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw/source/uibase/shells/tabsh.cxx')
-rw-r--r--sw/source/uibase/shells/tabsh.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/source/uibase/shells/tabsh.cxx b/sw/source/uibase/shells/tabsh.cxx
index 5f7e15a2601a..ff6216d68d8b 100644
--- a/sw/source/uibase/shells/tabsh.cxx
+++ b/sw/source/uibase/shells/tabsh.cxx
@@ -1036,7 +1036,8 @@ void SwTableShell::Execute(SfxRequest &rReq)
SwAbstractDialogFactory* pFact = SwAbstractDialogFactory::Create();
OSL_ENSURE(pFact, "SwAbstractDialogFactory fail!");
- ScopedVclPtr<AbstractSplitTableDialog> pDlg(pFact->CreateSplitTableDialog( GetView().GetWindow(), rSh ));
+ vcl::Window* pWin = GetView().GetWindow();
+ ScopedVclPtr<AbstractSplitTableDialog> pDlg(pFact->CreateSplitTableDialog(pWin ? pWin->GetFrameWeld() : nullptr, rSh));
OSL_ENSURE(pDlg, "Dialog creation failed!");
pDlg->Execute();
rReq.AppendItem( SfxUInt16Item( FN_PARAM_1, static_cast<sal_uInt16>(pDlg->GetSplitMode()) ) );