diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2018-02-20 08:46:23 +0100 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2018-02-20 10:45:25 +0100 |
commit | e42cce6be36b82bf92ed04af275ff1d4703d982b (patch) | |
tree | 646facc32fa8bbf37ebc654fd6a92f25dc16e929 /sw/source/uibase/app | |
parent | 61f3c760e573044bc51b94f00470c4fdd6d5c22f (diff) |
Use existing variable for that
Change-Id: I583bec8ea5dc7c2462cedee116048db12492e128
Reviewed-on: https://gerrit.libreoffice.org/50026
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'sw/source/uibase/app')
-rw-r--r-- | sw/source/uibase/app/docst.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sw/source/uibase/app/docst.cxx b/sw/source/uibase/app/docst.cxx index 8719f7444ece..ab91f5e13f26 100644 --- a/sw/source/uibase/app/docst.cxx +++ b/sw/source/uibase/app/docst.cxx @@ -820,8 +820,7 @@ void SwDocShell::Edit( SwAbstractDialogFactory* pFact = SwAbstractDialogFactory::Create(); assert( pFact ); ScopedVclPtr<SfxAbstractApplyTabDialog> pDlg(pFact->CreateTemplateDialog(&GetView()->GetViewFrame()->GetWindow(), - *(xTmp.get()), nFamily, sPage, - pActShell ? pActShell : m_pWrtShell, bNew)); + *(xTmp.get()), nFamily, sPage, pCurrShell, bNew)); assert( pDlg ); std::shared_ptr<ApplyStyle> pApplyStyleHelper(new ApplyStyle(*this, bNew, xTmp, nFamily, pDlg.get(), m_xBasePool, bModified)); pDlg->SetApplyHdl(LINK(pApplyStyleHelper.get(), ApplyStyle, ApplyHdl)); |