From 0daa0fa68e8eff8a85762c7dce080f7ccd549d6a Mon Sep 17 00:00:00 2001 From: Samuel Mehrbrodt Date: Thu, 11 Jan 2024 12:05:40 +0100 Subject: Revert "tdf#156725 sw: layout: don't prevent moving between columns ..." This reverts commit 807c2254ccd1a02e7af5a944f52948ef343ad384. --- sw/qa/extras/layout/data/tdf156725.fodt | 163 -------------------------------- sw/qa/extras/layout/layout.cxx | 21 ---- sw/source/core/layout/sectfrm.cxx | 4 +- 3 files changed, 1 insertion(+), 187 deletions(-) delete mode 100644 sw/qa/extras/layout/data/tdf156725.fodt diff --git a/sw/qa/extras/layout/data/tdf156725.fodt b/sw/qa/extras/layout/data/tdf156725.fodt deleted file mode 100644 index 9f60e7011954..000000000000 --- a/sw/qa/extras/layout/data/tdf156725.fodt +++ /dev/null @@ -1,163 +0,0 @@ - - - 2023-08-17T18:14:28.1153022102023-08-17T18:20:06.109127302PT4M30S2LibreOfficeDev/24.2.0.0.alpha0$Linux_X86_64 LibreOffice_project/79452241ad33f9eaace2ba8bd1336be69c99ed4d - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - a - b - c - d - - - - - - \ No newline at end of file diff --git a/sw/qa/extras/layout/layout.cxx b/sw/qa/extras/layout/layout.cxx index def657eec623..f72715fcba43 100644 --- a/sw/qa/extras/layout/layout.cxx +++ b/sw/qa/extras/layout/layout.cxx @@ -3672,27 +3672,6 @@ CPPUNIT_TEST_FIXTURE(SwLayoutWriter, testTdf156724) assertXPath(pXmlDoc, "/root/page", 2); } -CPPUNIT_TEST_FIXTURE(SwLayoutWriter, testTdf156725) -{ - createDoc("tdf156725.fodt"); - - xmlDocPtr pXmlDoc = parseLayoutDump(); - assertXPath(pXmlDoc, "/root/page", 2); - // the fly has 2 columns, the section in it has 2 columns, and is split - // across the fly columns => 4 columns with 1 text frame each - assertXPath(pXmlDoc, "/root/page[2]/body/txt/anchored/fly/column", 2); - assertXPath(pXmlDoc, "/root/page[2]/body/txt/anchored/fly/column[1]/body/section/column", 2); - assertXPath(pXmlDoc, - "/root/page[2]/body/txt/anchored/fly/column[1]/body/section/column[1]/body/txt", 1); - assertXPath(pXmlDoc, - "/root/page[2]/body/txt/anchored/fly/column[1]/body/section/column[2]/body/txt", 1); - assertXPath(pXmlDoc, "/root/page[2]/body/txt/anchored/fly/column[2]/body/section/column", 2); - assertXPath(pXmlDoc, - "/root/page[2]/body/txt/anchored/fly/column[2]/body/section/column[1]/body/txt", 1); - assertXPath(pXmlDoc, - "/root/page[2]/body/txt/anchored/fly/column[2]/body/section/column[2]/body/txt", 1); -} - CPPUNIT_PLUGIN_IMPLEMENT(); /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/core/layout/sectfrm.cxx b/sw/source/core/layout/sectfrm.cxx index 163b8932552c..4a34d748a46e 100644 --- a/sw/source/core/layout/sectfrm.cxx +++ b/sw/source/core/layout/sectfrm.cxx @@ -1724,9 +1724,7 @@ SwLayoutFrame *SwFrame::GetNextSctLeaf( MakePageType eMakePage ) // fine to be on the same page. New page creation is handled when // creating / moving the cell frame. // It doesn't make sense to move to a page that starts with break? - if (pNxtPg != FindPageFrame() // tdf#156725 not between columns! - && (WrongPageDesc(pNxtPg) || HasPageBreakBefore(*pNxtPg)) - && !bLayLeafTableAllowed) + if ((WrongPageDesc(pNxtPg) || HasPageBreakBefore(*pNxtPg)) && !bLayLeafTableAllowed ) { if( bWrongPage ) break; // there's a column between me and my right page -- cgit