diff options
author | Balazs Varga <balazs.varga991@gmail.com> | 2020-03-18 15:22:08 +0100 |
---|---|---|
committer | László Németh <nemeth@numbertext.org> | 2020-03-27 17:16:08 +0100 |
commit | 4d5053627e3e625e7b8c37c8785c0c9da31b7b6d (patch) | |
tree | 6806cab3ce2ded66fde503e103b654f62fcc45d4 /sw | |
parent | 0900c57f17e16b65309f7c5932e15354e923dd4a (diff) |
tdf#129095 Chart view: fix missing inner chart area
If the inner chart area has RelativeSize, always create
the plot area with that setting.
Regression from commit: 739ed2c29f49ea5e83bcd1352b2644c2e2d09f7b
(tdf#115630 tdf#88922 Chart: fix custom legend position and size)
Change-Id: I9265843c5d0d148c6a392e440b5d3b0c4ccf0e54
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90708
Tested-by: László Németh <nemeth@numbertext.org>
Reviewed-by: László Németh <nemeth@numbertext.org>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/qa/extras/layout/data/tdf129095.docx | bin | 0 -> 26028 bytes | |||
-rw-r--r-- | sw/qa/extras/layout/layout.cxx | 16 |
2 files changed, 16 insertions, 0 deletions
diff --git a/sw/qa/extras/layout/data/tdf129095.docx b/sw/qa/extras/layout/data/tdf129095.docx Binary files differnew file mode 100644 index 000000000000..3647028fcab3 --- /dev/null +++ b/sw/qa/extras/layout/data/tdf129095.docx diff --git a/sw/qa/extras/layout/layout.cxx b/sw/qa/extras/layout/layout.cxx index e57b72264ec4..b6295cab0ef5 100644 --- a/sw/qa/extras/layout/layout.cxx +++ b/sw/qa/extras/layout/layout.cxx @@ -2658,6 +2658,22 @@ CPPUNIT_TEST_FIXTURE(SwLayoutWriter, testTdf130380) CPPUNIT_ASSERT_DOUBLES_EQUAL(6727, nY, 50); } +CPPUNIT_TEST_FIXTURE(SwLayoutWriter, testTdf129095) +{ + SwDoc* pDoc = createDoc("tdf129095.docx"); + SwDocShell* pShell = pDoc->GetDocShell(); + + // Dump the rendering of the first page as an XML file. + std::shared_ptr<GDIMetaFile> xMetaFile = pShell->GetPreviewMetaFile(); + MetafileXmlDump dumper; + xmlDocPtr pXmlDoc = dumpAndParse(dumper, *xMetaFile); + CPPUNIT_ASSERT(pXmlDoc); + + // check the inner chart area visibility with testing the X axis label + assertXPathContent(pXmlDoc, "/metafile/push[1]/push[1]/push[1]/push[4]/push[1]/textarray/text", + "Category 1"); +} + CPPUNIT_TEST_FIXTURE(SwLayoutWriter, testTdf116925) { SwDoc* pDoc = createDoc("tdf116925.docx"); |