diff options
author | Justin Luth <justin_luth@sil.org> | 2019-01-14 17:16:42 +0300 |
---|---|---|
committer | Justin Luth <justin_luth@sil.org> | 2019-01-21 18:45:11 +0100 |
commit | 15819181772d95963d16c1c2eaa9e51af81f7f68 (patch) | |
tree | 457c9818ce361e42dda0e643e65067a918ef2ccb /sw/qa | |
parent | 775dd70bb9d50f0bbc8d9e5c6e09fd6e76b3aefe (diff) |
tdf#101826 ww8import: add XATTR_* to textbox attr set
Somewhat magically, just adding XATTR to the FlySet makes
background colors/gradients/images appear. This has been
broken since XATTR was introduced in LO 4.3.
Change-Id: I84554045f49618a5eb927edfebdf641c5a93b673
Reviewed-on: https://gerrit.libreoffice.org/66310
Tested-by: Jenkins
Reviewed-by: Justin Luth <justin_luth@sil.org>
Diffstat (limited to 'sw/qa')
-rw-r--r-- | sw/qa/extras/ww8export/ww8export.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sw/qa/extras/ww8export/ww8export.cxx b/sw/qa/extras/ww8export/ww8export.cxx index 48461ff527a6..0a22a05fa3ea 100644 --- a/sw/qa/extras/ww8export/ww8export.cxx +++ b/sw/qa/extras/ww8export/ww8export.cxx @@ -1303,6 +1303,9 @@ DECLARE_WW8EXPORT_TEST(testTdf76349_textboxMargins, "tdf76349_textboxMargins.doc { // textboxes without borders were losing their spacing items in round-tripping CPPUNIT_ASSERT( 0 < parseDump("/root/page/body/txt/anchored/fly/infos/prtBounds", "left").toInt32() ); + + uno::Reference<drawing::XShape> xShape = getShape(1); + CPPUNIT_ASSERT_EQUAL_MESSAGE("Textbox background color", Color(0xD8, 0xD8, 0xD8), getProperty<Color>(xShape, "BackColor")); } DECLARE_WW8EXPORT_TEST(testMoveRange, "fdo66304-1.odt") |