From be6a428c08467ec379b58c8908580a282f9a9d01 Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Tue, 1 Dec 2015 09:24:15 +0100 Subject: Related: tdf#94043 DOCX import: fix column separator handling See wwSectionManager::SetCols() for the DOC import equivalent of this code, if line width is 0, then there will be still no visible line. Change-Id: Ifb0dc596e252a60cdac575fff2894aced1580c69 --- sw/qa/extras/ooxmlimport/data/tdf94043.docx | Bin 0 -> 12326 bytes sw/qa/extras/ooxmlimport/ooxmlimport.cxx | 8 ++++++++ 2 files changed, 8 insertions(+) create mode 100644 sw/qa/extras/ooxmlimport/data/tdf94043.docx (limited to 'sw') diff --git a/sw/qa/extras/ooxmlimport/data/tdf94043.docx b/sw/qa/extras/ooxmlimport/data/tdf94043.docx new file mode 100644 index 000000000000..fa47be0760cd Binary files /dev/null and b/sw/qa/extras/ooxmlimport/data/tdf94043.docx differ diff --git a/sw/qa/extras/ooxmlimport/ooxmlimport.cxx b/sw/qa/extras/ooxmlimport/ooxmlimport.cxx index ef59606a2390..e19d1ba4c91e 100644 --- a/sw/qa/extras/ooxmlimport/ooxmlimport.cxx +++ b/sw/qa/extras/ooxmlimport/ooxmlimport.cxx @@ -2989,6 +2989,14 @@ DECLARE_OOXMLIMPORT_TEST(testTdf95970, "tdf95970.docx") CPPUNIT_ASSERT(basegfx::fTools::equal(aTransform.Line3.Column3, 1.0)); } +DECLARE_OOXMLIMPORT_TEST(testTdf94043, "tdf94043.docx") +{ + auto xTextSection = getProperty< uno::Reference >(getParagraph(2), "TextSection"); + auto xTextColumns = getProperty< uno::Reference >(xTextSection, "TextColumns"); + // This was 0, the separator line was not visible due to 0 width. + CPPUNIT_ASSERT_EQUAL(static_cast(2), getProperty(xTextColumns, "SeparatorLineWidth")); +} + CPPUNIT_PLUGIN_IMPLEMENT(); /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ -- cgit