[Libreoffice-commits] core.git: sw/source
Michael Weghorn (via logerrit)
logerrit at kemper.freedesktop.org
Wed Sep 25 14:27:54 UTC 2019
sw/source/uibase/dbui/dbmgr.cxx | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit f4fd98fc9f1b38071a806e52c17d26725c6a33c5
Author: Michael Weghorn <m.weghorn at posteo.de>
AuthorDate: Wed Sep 25 10:56:55 2019 +0200
Commit: Michael Weghorn <m.weghorn at 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.weghorn at 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 )
{
More information about the Libreoffice-commits
mailing list