summaryrefslogtreecommitdiff
path: root/sw/qa
diff options
context:
space:
mode:
authorDavid Vogt <david.vogt@adfinis-sygroup.ch>2019-03-13 13:11:39 +0100
committerMiklos Vajna <vmiklos@collabora.com>2019-03-14 18:13:24 +0100
commit4aa8a6ab08b755e3d82860e8dbc294f854336477 (patch)
tree751675d33b1fc9e4e4bab207018cdec823c6f75a /sw/qa
parent044fa501e95dcac8120767996dfb7ba8f25a703f (diff)
tdf#113289: Default value for footnote separator
In old versions of LO/AOO, separator style was defaulting to a solid line. When you have an old document that doesn't have the style set explicitly, the line would disappear. Since newer versions explicitly set the style, we should set the default to what it was before. Change-Id: I8dacea75fcf2f95f9bc145442b22ab0d173e7c5a Reviewed-on: https://gerrit.libreoffice.org/69167 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'sw/qa')
-rw-r--r--sw/qa/extras/odfimport/data/tdf113289.odtbin0 -> 8768 bytes
-rw-r--r--sw/qa/extras/odfimport/odfimport.cxx9
2 files changed, 9 insertions, 0 deletions
diff --git a/sw/qa/extras/odfimport/data/tdf113289.odt b/sw/qa/extras/odfimport/data/tdf113289.odt
new file mode 100644
index 000000000000..01aa5700c6d5
--- /dev/null
+++ b/sw/qa/extras/odfimport/data/tdf113289.odt
Binary files differ
diff --git a/sw/qa/extras/odfimport/odfimport.cxx b/sw/qa/extras/odfimport/odfimport.cxx
index a911635d3a6d..0eaae316a22c 100644
--- a/sw/qa/extras/odfimport/odfimport.cxx
+++ b/sw/qa/extras/odfimport/odfimport.cxx
@@ -14,6 +14,7 @@
#include <com/sun/star/drawing/BitmapMode.hpp>
#include <com/sun/star/lang/IndexOutOfBoundsException.hpp>
#include <com/sun/star/style/PageStyleLayout.hpp>
+#include <com/sun/star/style/FootnoteLineStyle.hpp>
#include <com/sun/star/table/XCell.hpp>
#include <com/sun/star/table/XCellRange.hpp>
#include <com/sun/star/table/BorderLine.hpp>
@@ -927,5 +928,13 @@ DECLARE_ODFIMPORT_TEST(testTdf123829, "tdf123829.odt")
pDoc->getIDocumentSettingAccess().get(DocumentSettingId::COLLAPSE_EMPTY_CELL_PARA));
}
+DECLARE_ODFIMPORT_TEST(testTdf113289, "tdf113289.odt")
+{
+ uno::Any aPageStyle = getStyles("PageStyles")->getByName("Standard");
+ CPPUNIT_ASSERT_EQUAL(static_cast<sal_Int8>(style::FootnoteLineStyle::SOLID),
+ getProperty<sal_Int8>(aPageStyle, "FootnoteLineStyle"));
+}
+
+
CPPUNIT_PLUGIN_IMPLEMENT();
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */