sw/source/uibase/dbui/dbmgr.cxx | 3 +++ 1 file changed, 3 insertions(+)
New commits: commit f4fd98fc9f1b38071a806e52c17d26725c6a33c5 Author: Michael Weghorn <m.wegh...@posteo.de> AuthorDate: Wed Sep 25 10:56:55 2019 +0200 Commit: Michael Weghorn <m.wegh...@posteo.de> CommitDate: Wed Sep 25 16:27:06 2019 +0200 tdf#114099 mail merge: Copy JobSetup to working doc This is needed for the print dialog to take the document-specific printer settings into account when using 'SwMailMergeDlg', where the print dialog is initialized based on the merged document. Change-Id: I1a1659d49b3b1267ea2a36a81a865837eb105905 Reviewed-on: https://gerrit.libreoffice.org/79515 Tested-by: Jenkins Reviewed-by: Michael Weghorn <m.wegh...@posteo.de> diff --git a/sw/source/uibase/dbui/dbmgr.cxx b/sw/source/uibase/dbui/dbmgr.cxx index b79aeb6e7c0d..a3625e788896 100644 --- a/sw/source/uibase/dbui/dbmgr.cxx +++ b/sw/source/uibase/dbui/dbmgr.cxx @@ -983,6 +983,9 @@ static SfxObjectShell* lcl_CreateWorkingDocument( // import print settings const SwPrintData &rPrintData = pSourceDoc->getIDocumentDeviceAccess().getPrintData(); pWorkDoc->getIDocumentDeviceAccess().setPrintData(rPrintData); + const JobSetup *pJobSetup = pSourceDoc->getIDocumentDeviceAccess().getJobsetup(); + if (pJobSetup) + pWorkDoc->getIDocumentDeviceAccess().setJobsetup(*pJobSetup); if( aType == WorkingDocType::TARGET ) { _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits