sw/qa/extras/ww8export/data/tdf85435.doc |binary sw/qa/extras/ww8export/ww8export4.cxx | 6 ++++++ sw/source/filter/ww8/ww8par6.cxx | 6 ------ 3 files changed, 6 insertions(+), 6 deletions(-)
New commits: commit 2b030ded43f440a898733290af087d4aeed53368 Author: Jonathan Clark <jonat...@libreoffice.org> AuthorDate: Fri Sep 20 00:50:21 2024 -0600 Commit: Jonathan Clark <jonat...@libreoffice.org> CommitDate: Fri Sep 20 11:18:53 2024 +0200 tdf#85435 sw: No longer clear AddExtLeading for doc files with grid This change removes a problematic workaround from the doc importer, which was clearing the AddExtLeading compatibility flag for any doc file containing a document grid. The original intention for this workaround was to fix tdf#129808. At some point, the workaround was disabled by inverting the value assigned to the compatibility flag. Unfortunately, either way causes unfortunate side effects. Since tdf#129808 is now fixed elsewhere, this workaround no longer serves any apparent purpose. Change-Id: Ice46f1473916b072e183010f8888f6be62761bb3 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173695 Tested-by: Jenkins Reviewed-by: Jonathan Clark <jonat...@libreoffice.org> diff --git a/sw/qa/extras/ww8export/data/tdf85435.doc b/sw/qa/extras/ww8export/data/tdf85435.doc new file mode 100644 index 000000000000..0571e7ffb148 Binary files /dev/null and b/sw/qa/extras/ww8export/data/tdf85435.doc differ diff --git a/sw/qa/extras/ww8export/ww8export4.cxx b/sw/qa/extras/ww8export/ww8export4.cxx index 59a682a347f9..c17ea139f401 100644 --- a/sw/qa/extras/ww8export/ww8export4.cxx +++ b/sw/qa/extras/ww8export/ww8export4.cxx @@ -639,6 +639,12 @@ CPPUNIT_TEST_FIXTURE(Test, testTdf54862) verify(); } +DECLARE_WW8EXPORT_TEST(testTdf85435, "tdf85435.doc") +{ + // Without the fix, this document only has one page. + CPPUNIT_ASSERT_EQUAL(2, getPages()); +} + } // end of anonymous namespace CPPUNIT_PLUGIN_IMPLEMENT(); diff --git a/sw/source/filter/ww8/ww8par6.cxx b/sw/source/filter/ww8/ww8par6.cxx index d1b262858c4b..08d02b772a4c 100644 --- a/sw/source/filter/ww8/ww8par6.cxx +++ b/sw/source/filter/ww8/ww8par6.cxx @@ -261,12 +261,6 @@ void SwWW8ImplReader::SetDocumentGrid(SwFrameFormat &rFormat, const wwSection &r aGrid.SetGridType(eType); - // seem to not add external leading in word, or the character would run across - // two line in some cases. - // TODO: tdf#85435 suggests that this is wrong - if (eType != GRID_NONE) - m_rDoc.getIDocumentSettingAccess().set(DocumentSettingId::ADD_EXT_LEADING, false); - //force to set document as standard page mode bool bSquaredMode = false; m_rDoc.SetDefaultPageMode( bSquaredMode );