From e42cce6be36b82bf92ed04af275ff1d4703d982b Mon Sep 17 00:00:00 2001 From: Mike Kaganski Date: Tue, 20 Feb 2018 08:46:23 +0100 Subject: Use existing variable for that Change-Id: I583bec8ea5dc7c2462cedee116048db12492e128 Reviewed-on: https://gerrit.libreoffice.org/50026 Tested-by: Jenkins Reviewed-by: Mike Kaganski --- sw/source/uibase/app/docst.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sw/source/uibase/app/docst.cxx') 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 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 pApplyStyleHelper(new ApplyStyle(*this, bNew, xTmp, nFamily, pDlg.get(), m_xBasePool, bModified)); pDlg->SetApplyHdl(LINK(pApplyStyleHelper.get(), ApplyStyle, ApplyHdl)); -- cgit