path: root/test
diff options
authorMiklos Vajna <>2020-04-08 17:47:24 +0200
committerMiklos Vajna <>2020-04-08 18:25:18 +0200
commitea52d24b5a19bb54f91cd679a977332ec330880d (patch)
tree99d6cb2e349db07dda4ff44b89826a77ba15c99b /test
parent95dbfd517240666e5b9a9fd7ac1d47d799235a62 (diff)
SVG export: fix lost semi-transparent line shapes
The line shape itself didn't really have a height, rather it had a stroke. For some reason, the SVG mask then decides that nothing has to be painted there, so unless the line is entirely opaque, the line shape gets lost on export. Fix the problem by handling transparency similar to the PDF export, which detects if the whole purpose of the transparency gradient is to pass around a transparency percentage. We don't need a mask in that case, we can just use opacity as described at e.g. <>. Change-Id: I0355b9b09b6dd48bbacc5b7cc54fb71866304ef1 Reviewed-on: Reviewed-by: Miklos Vajna <> Tested-by: Jenkins
Diffstat (limited to 'test')
1 files changed, 4 insertions, 1 deletions
diff --git a/test/source/xmltesttools.cxx b/test/source/xmltesttools.cxx
index b4a74aa4a8b4..f89c127171bd 100644
--- a/test/source/xmltesttools.cxx
+++ b/test/source/xmltesttools.cxx
@@ -12,6 +12,7 @@
#include <memory>
#include <vcl/mtfxmldump.hxx>
+#include <sal/log.hxx>
namespace {
@@ -53,7 +54,9 @@ xmlDocPtr XmlTestTools::parseXmlStream(SvStream* pStream)
std::unique_ptr<sal_uInt8[]> pBuffer(new sal_uInt8[nSize + 1]);
pStream->ReadBytes(pBuffer.get(), nSize);
pBuffer[nSize] = 0;
- return xmlParseDoc(reinterpret_cast<xmlChar*>(pBuffer.get()));
+ auto pCharBuffer = reinterpret_cast<xmlChar*>(pBuffer.get());
+ SAL_INFO("test", "XmlTestTools::parseXmlStream: pBuffer is '" << pCharBuffer << "'");
+ return xmlParseDoc(pCharBuffer);
xmlDocPtr XmlTestTools::dumpAndParse(MetafileXmlDump& rDumper, const GDIMetaFile& rGDIMetaFile)