diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2023-07-10 21:16:32 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2023-07-11 05:03:30 +0200 |
commit | b915dd9e1559870045481403806dd073f4fb5818 (patch) | |
tree | e9d66d2d2e0bcb6a6bccfab76f7a00fd10f831dd /sw | |
parent | fcbae818b793a9ee97a1b5ddc53902be7a2376f5 (diff) |
tdf#156130: Use default tab stop when TOC*N style doesn't define one
When TOC*N style only defines one tab stop, it's used by Word as the
page number position, and the tab between chapter number and chapter
name is set to a default position. When the style has no tab stops,
they are both defaulted.
testTdf154319 is updated to test this.
Change-Id: I561995a8e96882e1f17ee9982e3fc640e621cda2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/154281
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/qa/extras/ooxmlimport/data/tdf154319-ToC_with_s_and_d.docx | bin | 19016 -> 18797 bytes | |||
-rw-r--r-- | sw/qa/extras/ooxmlimport/ooxmlimport2.cxx | 2 |
2 files changed, 1 insertions, 1 deletions
diff --git a/sw/qa/extras/ooxmlimport/data/tdf154319-ToC_with_s_and_d.docx b/sw/qa/extras/ooxmlimport/data/tdf154319-ToC_with_s_and_d.docx Binary files differindex dc5a67824c9d..91a9d0b8adea 100644 --- a/sw/qa/extras/ooxmlimport/data/tdf154319-ToC_with_s_and_d.docx +++ b/sw/qa/extras/ooxmlimport/data/tdf154319-ToC_with_s_and_d.docx diff --git a/sw/qa/extras/ooxmlimport/ooxmlimport2.cxx b/sw/qa/extras/ooxmlimport/ooxmlimport2.cxx index a0a4d8051686..6edd873dc7ed 100644 --- a/sw/qa/extras/ooxmlimport/ooxmlimport2.cxx +++ b/sw/qa/extras/ooxmlimport/ooxmlimport2.cxx @@ -1063,7 +1063,7 @@ CPPUNIT_TEST_FIXTURE(Test, testTdf154319) // tdf#154360: check tab stops between the number and the entry text // The last (10th) level does not correspond to any MS level (only 9 levels there) constexpr sal_Int32 levelTabStops[] - = { 776, 1270, 1270, 1270, 1270, 1270, 1270, 1270, 1270, -1 }; + = { 776, 1552, 2328, 3104, 3881, 4657, 5433, 6209, 6985, -1 }; //start with level 1, 0 is the header level for (sal_Int32 nLevel = 1; nLevel < xLevelFormats->getCount(); ++nLevel) |