sw/source/uibase/app/docst.cxx |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit e42cce6be36b82bf92ed04af275ff1d4703d982b
Author: Mike Kaganski <mike.kagan...@collabora.com>
Date:   Tue Feb 20 08:46:23 2018 +0100

    Use existing variable for that
    
    Change-Id: I583bec8ea5dc7c2462cedee116048db12492e128
    Reviewed-on: https://gerrit.libreoffice.org/50026
    Tested-by: Jenkins <c...@libreoffice.org>
    Reviewed-by: Mike Kaganski <mike.kagan...@collabora.com>

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));
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to