[Libreoffice-commits] core.git: sw/source

Mike Kaganski mike.kaganski at collabora.com
Tue Feb 20 09:45:48 UTC 2018


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

New commits:
commit e42cce6be36b82bf92ed04af275ff1d4703d982b
Author: Mike Kaganski <mike.kaganski at 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 <ci at libreoffice.org>
    Reviewed-by: Mike Kaganski <mike.kaganski at 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));


More information about the Libreoffice-commits mailing list