diff options
author | Justin Luth <justin_luth@sil.org> | 2021-02-24 10:07:08 +0200 |
---|---|---|
committer | Michael Stahl <michael.stahl@allotropia.de> | 2021-02-26 13:25:29 +0100 |
commit | 633e72f078f99eb9f27e4ff623111ab634ff6fe1 (patch) | |
tree | ea3c2d2c815e515fbcb4b3ded9ace5e194f8e384 /sw | |
parent | f580ea54bddee91e85ef018be286b60b48935681 (diff) |
tdf#140572 writerfilter: ignore position in docDefaults
Despite the documentation saying that anything in docDefaults
should apply everywhere unless it is overridden in a higher
priority style, the subscript/superscript setting in
docDefaults seems to be ignored. Makes sense in a way,
but perhaps document those exceptions?
I looked for documentation in both "docDefaults" and "position"
and didn't see anything suggesting why it is ignored.
Change-Id: If676415b112921e4cb8f7306b8c8ad93a6fd8cde
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111442
Tested-by: Jenkins
Reviewed-by: Justin Luth <justin_luth@sil.org>
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
(cherry picked from commit 861ca1f5030f2f6b7fbdc3bb3ded3d11130673ed)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111463
Diffstat (limited to 'sw')
-rw-r--r-- | sw/qa/extras/ooxmlexport/ooxmlexport16.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport16.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport16.cxx index 04c4975056e4..2b1b75c02b59 100644 --- a/sw/qa/extras/ooxmlexport/ooxmlexport16.cxx +++ b/sw/qa/extras/ooxmlexport/ooxmlexport16.cxx @@ -13,6 +13,7 @@ #include <com/sun/star/text/XTextViewCursorSupplier.hpp> #include <com/sun/star/text/XTextTable.hpp> #include <com/sun/star/text/XTextTablesSupplier.hpp> +#include <editeng/escapementitem.hxx> char const DATA_DIRECTORY[] = "/sw/qa/extras/ooxmlexport/data/"; @@ -65,6 +66,9 @@ DECLARE_OOXMLEXPORT_EXPORTONLY_TEST(testFooterMarginLost, "footer-margin-lost.do DECLARE_OOXMLEXPORT_EXPORTONLY_TEST(testTdf140572_docDefault_superscript, "tdf140572_docDefault_superscript.docx") { // A round-trip was crashing. + + // Without the fix, everything was DFLT_ESC_AUTO_SUPER (default superscript) + CPPUNIT_ASSERT_EQUAL( sal_Int16(0), getProperty<sal_Int16>(getRun(getParagraph(1), 1), "CharEscapement") ); } DECLARE_OOXMLEXPORT_TEST(testTdf138953, "croppedAndRotated.odt") |