diff options
author | Caolán McNamara <caolanm@redhat.com> | 2022-01-17 17:21:53 +0000 |
---|---|---|
committer | Michael Stahl <michael.stahl@allotropia.de> | 2022-01-18 11:26:53 +0100 |
commit | 2d80e871034dcab71f6324044ad810e057b185d1 (patch) | |
tree | e83812e48eb628c5aadc9a0380295db1da8aba3b | |
parent | RTF import: handle the pictureContrast and pictureBrightness shape props (diff) | |
download | core-2d80e871034dcab71f6324044ad810e057b185d1.tar.gz core-2d80e871034dcab71f6324044ad810e057b185d1.zip |
tdf#146515 export "Use printer metrics for document formatting" to docx
import already works
Change-Id: Ia94c6d21ed2abc922a3f450a78dfaf3c331847ad
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128529
Tested-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
-rw-r--r-- | sw/source/filter/ww8/docxexport.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sw/source/filter/ww8/docxexport.cxx b/sw/source/filter/ww8/docxexport.cxx index a5e7818ea107..6a4ba2dd58cd 100644 --- a/sw/source/filter/ww8/docxexport.cxx +++ b/sw/source/filter/ww8/docxexport.cxx @@ -984,6 +984,9 @@ WriteCompat(SwDoc const& rDoc, ::sax_fastparser::FSHelperPtr const& rpFS, { rpFS->singleElementNS(XML_w, XML_doNotExpandShiftReturn); } + // tdf#146515 export "Use printer metrics for document formatting" + if (!rDoc.getIDocumentSettingAccess().get(DocumentSettingId::USE_VIRTUAL_DEVICE)) + rpFS->singleElementNS(XML_w, XML_usePrinterMetrics); } void DocxExport::WriteSettings() |