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

Luboš Luňák l.lunak at collabora.com
Thu Oct 9 08:48:43 PDT 2014


 sw/source/ui/dbui/mmoutputpage.cxx |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit fab88063281761dbdac7ea550072660fe0f8c863
Author: Luboš Luňák <l.lunak at collabora.com>
Date:   Thu Oct 9 17:47:42 2014 +0200

    copy document defaults/properties for separate mailmerge result files #2
    
    Another place, sigh.
    
    Change-Id: Id5b73ade2ee5de5d89abf98a0fe2608d5100240b

diff --git a/sw/source/ui/dbui/mmoutputpage.cxx b/sw/source/ui/dbui/mmoutputpage.cxx
index ba2aa1e..369d41f 100644
--- a/sw/source/ui/dbui/mmoutputpage.cxx
+++ b/sw/source/ui/dbui/mmoutputpage.cxx
@@ -1088,6 +1088,9 @@ IMPL_LINK(SwMailMergeOutputPage, SendDocumentsHdl_Impl, PushButton*, pButton)
         aOpt.SetMerge( false );
         pTempView->GetDocShell()->LoadStylesFromFile(
                 sTargetTempURL, aOpt, true );
+        pTempView->GetDocShell()->GetDoc()->ReplaceCompatabilityOptions( *pTargetView->GetDocShell()->GetDoc());
+        pTempView->GetDocShell()->GetDoc()->ReplaceDefaults( *pTargetView->GetDocShell()->GetDoc());
+        pTempView->GetDocShell()->GetDoc()->ReplaceDocumentProperties( *pTargetView->GetDocShell()->GetDoc(), true );
         pTargetView->GetWrtShell().PastePages(pTempView->GetWrtShell(),
                 (sal_uInt16)rInfo.nStartPageInTarget, (sal_uInt16)rInfo.nEndPageInTarget );
         pTargetView->GetWrtShell().EndAction();


More information about the Libreoffice-commits mailing list