diff options
author | Regina Henschel <rb.henschel@t-online.de> | 2021-07-06 00:03:25 +0200 |
---|---|---|
committer | Regina Henschel <rb.henschel@t-online.de> | 2021-07-06 14:02:15 +0200 |
commit | 72541a46aa26194b751785cd56185c8d3db0c9e9 (patch) | |
tree | 4fdb1761e465392f66e5fb0be5b3a0e5756e926e /writerfilter/qa | |
parent | 36939127391f2275cad5a676cf073cfa998c9982 (diff) |
tdf#143208 set property ContourOutside in docx import
The property value was correctly read from wrapTight and wrapThrough
to bContourOutside, but not added to the shape properties.
Change-Id: I825ec2a652031edf69e05f611e6da0f1afd862cb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118456
Tested-by: Jenkins
Reviewed-by: Regina Henschel <rb.henschel@t-online.de>
Diffstat (limited to 'writerfilter/qa')
-rw-r--r-- | writerfilter/qa/cppunittests/dmapper/GraphicImport.cxx | 14 | ||||
-rw-r--r-- | writerfilter/qa/cppunittests/dmapper/data/tdf143208_wrapTight.docx | bin | 0 -> 20136 bytes |
2 files changed, 14 insertions, 0 deletions
diff --git a/writerfilter/qa/cppunittests/dmapper/GraphicImport.cxx b/writerfilter/qa/cppunittests/dmapper/GraphicImport.cxx index 6ef6cf1da6e6..c47b33b71f5c 100644 --- a/writerfilter/qa/cppunittests/dmapper/GraphicImport.cxx +++ b/writerfilter/qa/cppunittests/dmapper/GraphicImport.cxx @@ -57,6 +57,20 @@ void Test::tearDown() constexpr OUStringLiteral DATA_DIRECTORY = u"/writerfilter/qa/cppunittests/dmapper/data/"; +CPPUNIT_TEST_FIXTURE(Test, testTdf143208wrapTight) +{ + OUString aURL = m_directories.getURLFromSrc(DATA_DIRECTORY) + "tdf143208_wrapTight.docx"; + // The document has a shape with indentation and contour wrap "wrapTight". Error was, that + // the corresponding shape property 'ContourOutside=true' was not set. + getComponent() = loadFromDesktop(aURL); + uno::Reference<drawing::XDrawPageSupplier> xDrawPageSupplier(getComponent(), uno::UNO_QUERY); + uno::Reference<drawing::XDrawPage> xDrawPage = xDrawPageSupplier->getDrawPage(); + uno::Reference<beans::XPropertySet> xShape(xDrawPage->getByIndex(0), uno::UNO_QUERY); + bool bContourOutside; + xShape->getPropertyValue("ContourOutside") >>= bContourOutside; + CPPUNIT_ASSERT(bContourOutside); +} + CPPUNIT_TEST_FIXTURE(Test, testTdf142305StrokeGlowMargin) { OUString aURL = m_directories.getURLFromSrc(DATA_DIRECTORY) + "tdf142305StrokeGlowMargin.docx"; diff --git a/writerfilter/qa/cppunittests/dmapper/data/tdf143208_wrapTight.docx b/writerfilter/qa/cppunittests/dmapper/data/tdf143208_wrapTight.docx Binary files differnew file mode 100644 index 000000000000..fab911ad902e --- /dev/null +++ b/writerfilter/qa/cppunittests/dmapper/data/tdf143208_wrapTight.docx |