summaryrefslogtreecommitdiff
path: root/sw/source
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.com>2021-10-07 20:03:41 +0200
committerMiklos Vajna <vmiklos@collabora.com>2021-10-08 08:08:40 +0200
commit0db7e46536fc23d5201ed9ff610a8ae0efd09a96 (patch)
treec9b744989c0038c42ecb3b0353549cd472d7c539 /sw/source
parent6b93ee72df1aa42d1a3482ffc396bd0c23134f8b (diff)
sw: handle mbIsLabelDoc when replacing compat options
This describes if the document contains labels for printing, surely we want to keep that when copying the contents of the document to an empty document. (Mail merge scenario.) With this, finally sw::DocumentSettingManager::ReplaceCompatibilityOptions() replaces all options where it makes sense to do so. Change-Id: Ic0be340578e9a01fac7e8c08fe2e6b6ffbb30039 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123230 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'sw/source')
-rw-r--r--sw/source/core/doc/DocumentSettingManager.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/doc/DocumentSettingManager.cxx b/sw/source/core/doc/DocumentSettingManager.cxx
index 47c7d2837ddb..883ab4736e73 100644
--- a/sw/source/core/doc/DocumentSettingManager.cxx
+++ b/sw/source/core/doc/DocumentSettingManager.cxx
@@ -624,7 +624,7 @@ void sw::DocumentSettingManager::ReplaceCompatibilityOptions(const DocumentSetti
// for non-SwWebDocShells.
// No mbIsGlobalDoc: this is true for SwGlobalDocShells.
mbGlblDocSaveLinks = rSource.mbGlblDocSaveLinks;
- // No mbIsLabelDoc
+ mbIsLabelDoc = rSource.mbIsLabelDoc;
mbPurgeOLE = rSource.mbPurgeOLE;
mbKernAsianPunctuation = rSource.mbKernAsianPunctuation;
mbParaSpaceMax = rSource.mbParaSpaceMax;