diff options
author | Justin Luth <justin.luth@collabora.com> | 2018-08-21 17:10:00 +0300 |
---|---|---|
committer | Justin Luth <justin_luth@sil.org> | 2018-10-04 08:30:50 +0200 |
commit | b4c0a0ea0102d4157572b4f4302324533c0667fb (patch) | |
tree | 2ffd5df667c0091b485f8ce2d4539ed07b7f73a7 | |
parent | 86bcedbef057d234be91daeac6d4086efc10ab20 (diff) |
related tdf#76683 writerfilter: hanging implemented as Signed
despite the documentation that states it must be a positive value,
the actual implmentation honors a negative number (as opposed to
treating it as a zero, or an absolute).
Change-Id: Ie38369ecdf5353b73572dd3533c2efe41adda290
Reviewed-on: https://gerrit.libreoffice.org/59401
Tested-by: Jenkins
Reviewed-by: Justin Luth <justin_luth@sil.org>
-rw-r--r-- | sw/qa/extras/ooxmlexport/ooxmlexport11.cxx | 1 | ||||
-rw-r--r-- | writerfilter/source/ooxml/model.xml | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport11.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport11.cxx index adb0dc6f4264..812ff0c09f45 100644 --- a/sw/qa/extras/ooxmlexport/ooxmlexport11.cxx +++ b/sw/qa/extras/ooxmlexport/ooxmlexport11.cxx @@ -674,6 +674,7 @@ DECLARE_OOXMLEXPORT_TEST(testTdf118521_marginsLR, "tdf118521_marginsLR.docx") nMargin = getProperty<sal_Int32>(xMyStyle, "ParaRightMargin"); CPPUNIT_ASSERT_EQUAL(sal_Int32(1900), nMargin); CPPUNIT_ASSERT_EQUAL(nMargin, getProperty<sal_Int32>(getParagraph(2), "ParaRightMargin")); + CPPUNIT_ASSERT_EQUAL(sal_Int32(882), getProperty<sal_Int32>(getParagraph(2), "ParaFirstLineIndent")); } DECLARE_OOXMLIMPORT_TEST(testTdf104797, "tdf104797.docx") diff --git a/writerfilter/source/ooxml/model.xml b/writerfilter/source/ooxml/model.xml index 953010eb020b..a838c8bfde2c 100644 --- a/writerfilter/source/ooxml/model.xml +++ b/writerfilter/source/ooxml/model.xml @@ -11784,7 +11784,7 @@ <ref name="ST_DecimalNumber"/> </attribute> <attribute name="hanging"> - <ref name="ST_TwipsMeasure"/> + <ref name="ST_TwipsMeasure_asSigned"/> </attribute> <attribute name="hangingChars"> <ref name="ST_DecimalNumber"/> |