summaryrefslogtreecommitdiff
path: root/sw/qa
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2014-10-25 12:15:16 +0200
committerAndras Timar <andras.timar@collabora.com>2014-11-23 14:30:36 +0100
commit439fa5bbf1902f0ed511b85bc34cec8d965fe273 (patch)
tree85f866a783230260ae3e64a734d15427489ab004 /sw/qa
parent3731dafc9f8159660c391be103322e69e9788797 (diff)
fdo#82858 RTF export: fix "none" line style of TextFrames
Regression from commit 9e6a5b94e00f0054b058dbb42c2c0b6c75236c9d (RtfAttributeOutput::FormatBox: export line{Color,Width} shape properties, 2013-04-15), in case lineColor is written, but there is no border style, then an explicit fLine=0 property is needed, otherwise a black border shows up. (cherry picked from commit f824b1b575dbdb2bc515656a66cbb94764031a44) Change-Id: I6d6eedbc8d3ee4bee0f2aadb51a376c7734c6640 Reviewed-on: https://gerrit.libreoffice.org/12185 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'sw/qa')
-rw-r--r--sw/qa/extras/rtfexport/data/fdo82858.docxbin0 -> 10672 bytes
-rw-r--r--sw/qa/extras/rtfexport/rtfexport.cxx6
2 files changed, 6 insertions, 0 deletions
diff --git a/sw/qa/extras/rtfexport/data/fdo82858.docx b/sw/qa/extras/rtfexport/data/fdo82858.docx
new file mode 100644
index 000000000000..e0b1a1392da6
--- /dev/null
+++ b/sw/qa/extras/rtfexport/data/fdo82858.docx
Binary files differ
diff --git a/sw/qa/extras/rtfexport/rtfexport.cxx b/sw/qa/extras/rtfexport/rtfexport.cxx
index 06172585cc95..0f53098b82b4 100644
--- a/sw/qa/extras/rtfexport/rtfexport.cxx
+++ b/sw/qa/extras/rtfexport/rtfexport.cxx
@@ -661,6 +661,12 @@ DECLARE_RTFEXPORT_TEST(testFdo79599, "fdo79599.rtf")
#endif
+DECLARE_RTFEXPORT_TEST(testFdo82858, "fdo82858.docx")
+{
+ // This was table::BorderLineStyle::SOLID, exporter failed to write explicit no line when line color was written.
+ CPPUNIT_ASSERT_EQUAL(table::BorderLineStyle::NONE, getProperty<table::BorderLine2>(getShape(1), "TopBorder").LineStyle);
+}
+
CPPUNIT_PLUGIN_IMPLEMENT();
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */