diff options
author | Attila Bakos (NISZ) <bakos.attilakaroly@nisz.hu> | 2021-01-07 11:31:39 +0100 |
---|---|---|
committer | László Németh <nemeth@numbertext.org> | 2021-02-04 13:26:04 +0100 |
commit | ec33be1d135c1523b4d872eb2f86c515f0419509 (patch) | |
tree | 68db2d6475ea632a65b9cc2bcb2bf88798c5bc66 /sw/qa/extras | |
parent | c96c386c5db45dc4d5e358915caad7474e373068 (diff) |
tdf#136059 OOXML export: fix shape wrap "Contour"
Custom shapes lost their contour setting, e.g. the
text was wrapped around the bounding box of a diamond
instead of the shape.
Change-Id: Ic1e276b8957751aad95cc2624e9f54dcb853ddad
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108930
Tested-by: László Németh <nemeth@numbertext.org>
Reviewed-by: László Németh <nemeth@numbertext.org>
Diffstat (limited to 'sw/qa/extras')
-rwxr-xr-x | sw/qa/extras/ooxmlexport/data/tdf136059.odt | bin | 0 -> 17964 bytes | |||
-rw-r--r-- | sw/qa/extras/ooxmlexport/ooxmlexport16.cxx | 7 |
2 files changed, 7 insertions, 0 deletions
diff --git a/sw/qa/extras/ooxmlexport/data/tdf136059.odt b/sw/qa/extras/ooxmlexport/data/tdf136059.odt Binary files differnew file mode 100755 index 000000000000..50d808d12f2f --- /dev/null +++ b/sw/qa/extras/ooxmlexport/data/tdf136059.odt diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport16.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport16.cxx index c35db2c88cd1..37610a23f43f 100644 --- a/sw/qa/extras/ooxmlexport/ooxmlexport16.cxx +++ b/sw/qa/extras/ooxmlexport/ooxmlexport16.cxx @@ -31,6 +31,13 @@ protected: } }; +DECLARE_OOXMLEXPORT_TEST(testTdf136059, "tdf136059.odt") +{ + CPPUNIT_ASSERT_EQUAL_MESSAGE("Contour has not been exported!", true, + getProperty<bool>(getShape(1), "SurroundContour")); + // With the fix this shall pass, see tdf136059. +} + DECLARE_OOXMLEXPORT_TEST(testTdf138892_noNumbering, "tdf138892_noNumbering.docx") { CPPUNIT_ASSERT_MESSAGE("Para1: Bullet point", !getProperty<OUString>(getParagraph(1), "NumberingStyleName").isEmpty()); |