diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-03-01 20:21:12 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-03-02 17:08:16 +0100 |
commit | d8a3741e0e3aa2fed6e3e16fae8eac095356c8bf (patch) | |
tree | b3fc743a22d8adc46773914d83acf45f463cb4f2 /sw/source/uibase/shells/tabsh.cxx | |
parent | dab9a2b60a63530638905bd26162946a9494f93b (diff) |
weld split cells dialog
Change-Id: I726c6d84807ab3efba509058eed554fe4c0ffced
Reviewed-on: https://gerrit.libreoffice.org/50636
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.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/source/uibase/shells/tabsh.cxx b/sw/source/uibase/shells/tabsh.cxx index f696bac5717d..5f7e15a2601a 100644 --- a/sw/source/uibase/shells/tabsh.cxx +++ b/sw/source/uibase/shells/tabsh.cxx @@ -990,7 +990,8 @@ void SwTableShell::Execute(SfxRequest &rReq) if( pFact ) { const long nMaxVert = rSh.GetAnyCurRect( CurRectType::Frame ).Width() / MINLAY; - ScopedVclPtr<SvxAbstractSplittTableDialog> pDlg(pFact->CreateSvxSplittTableDialog( GetView().GetWindow(), rSh.IsTableVertical(), nMaxVert )); + vcl::Window* pWin = GetView().GetWindow(); + ScopedVclPtr<SvxAbstractSplittTableDialog> pDlg(pFact->CreateSvxSplittTableDialog(pWin ? pWin->GetFrameWeld() : nullptr, rSh.IsTableVertical(), nMaxVert)); if( pDlg && (pDlg->Execute() == RET_OK) ) { nCount = pDlg->GetCount(); |