diff options
author | Michael Weghorn <m.weghorn@posteo.de> | 2019-09-25 10:56:55 +0200 |
---|---|---|
committer | Michael Weghorn <m.weghorn@posteo.de> | 2019-09-25 16:27:06 +0200 |
commit | f4fd98fc9f1b38071a806e52c17d26725c6a33c5 (patch) | |
tree | 060a2bcc1a5c7d4bf4a154d34f86152b68179001 /sw/source/uibase/dbui/dbmgr.cxx | |
parent | e39ddbdb5b6f49e3585a03444dce077709b855e6 (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>
Diffstat (limited to 'sw/source/uibase/dbui/dbmgr.cxx')
-rw-r--r-- | sw/source/uibase/dbui/dbmgr.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
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 ) { |