summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Weghorn <m.weghorn@posteo.de>2019-09-25 10:56:55 +0200
committerMichael Weghorn <m.weghorn@posteo.de>2019-11-05 16:11:49 +0100
commitac31e4443056bd09761cb9d57a87f0131adb4a84 (patch)
tree45259a3871735f3ab46787d2a9d9a5bc5342b216
parent8ee995513d2749d8f3b4e4d6970c2f33cc1fc276 (diff)
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@posteo.de> (cherry picked from commit f4fd98fc9f1b38071a806e52c17d26725c6a33c5) Reviewed-on: https://gerrit.libreoffice.org/82066 Tested-by: Michael Weghorn <m.weghorn@posteo.de>
-rw-r--r--sw/source/uibase/dbui/dbmgr.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/sw/source/uibase/dbui/dbmgr.cxx b/sw/source/uibase/dbui/dbmgr.cxx
index 59dae0bb3ac1..23304b977c54 100644
--- a/sw/source/uibase/dbui/dbmgr.cxx
+++ b/sw/source/uibase/dbui/dbmgr.cxx
@@ -1068,6 +1068,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 )
{