summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
Diffstat (limited to 'sw')
-rw-r--r--sw/qa/extras/ooxmlexport/data/tdf134260.docxbin0 -> 14233 bytes
-rw-r--r--sw/qa/extras/ooxmlexport/ooxmlexport14.cxx31
2 files changed, 31 insertions, 0 deletions
diff --git a/sw/qa/extras/ooxmlexport/data/tdf134260.docx b/sw/qa/extras/ooxmlexport/data/tdf134260.docx
new file mode 100644
index 000000000000..98c4107f4804
--- /dev/null
+++ b/sw/qa/extras/ooxmlexport/data/tdf134260.docx
Binary files differ
diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport14.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport14.cxx
index 3ca1a456182f..f2e09af96bfa 100644
--- a/sw/qa/extras/ooxmlexport/ooxmlexport14.cxx
+++ b/sw/qa/extras/ooxmlexport/ooxmlexport14.cxx
@@ -267,6 +267,37 @@ DECLARE_OOXMLEXPORT_TEST(testTdf133000_numStyleFormatting, "tdf133000_numStyleFo
CPPUNIT_ASSERT( nLevel1Margin < nLevel2Margin );
}
+DECLARE_OOXMLEXPORT_TEST(testTdf134260, "tdf134260.docx")
+{
+ // Without the accompanying fix in place, this test would have failed with:
+ // - Expected: 0
+ // - Actual : 1270
+
+ auto xNum1Levels
+ = getProperty<uno::Reference<container::XIndexAccess>>(getParagraph(1), "NumberingRules");
+
+ CPPUNIT_ASSERT_EQUAL(
+ sal_Int32(0),
+ comphelper::SequenceAsHashMap(xNum1Levels->getByIndex(0))["ListtabStopPosition"]
+ .get<sal_Int32>());
+
+ auto xNum2Levels
+ = getProperty<uno::Reference<container::XIndexAccess>>(getParagraph(2), "NumberingRules");
+
+ CPPUNIT_ASSERT_EQUAL(
+ sal_Int32(0),
+ comphelper::SequenceAsHashMap(xNum2Levels->getByIndex(0))["ListtabStopPosition"]
+ .get<sal_Int32>());
+
+ auto xNum3Levels
+ = getProperty<uno::Reference<container::XIndexAccess>>(getParagraph(3), "NumberingRules");
+
+ CPPUNIT_ASSERT_EQUAL(
+ sal_Int32(0),
+ comphelper::SequenceAsHashMap(xNum3Levels->getByIndex(0))["ListtabStopPosition"]
+ .get<sal_Int32>());
+}
+
DECLARE_ODFEXPORT_TEST(testArabicZeroNumbering, "arabic-zero-numbering.docx")
{
auto xNumberingRules