summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2016-12-29 11:45:38 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2016-12-29 12:17:48 +0000
commitfa96ffbc6b51154533557e2b4e03a611ebf09b6c (patch)
tree34747643161fa4272b7722d963d86b7b549848b1 /test
parent767ec2f138d824b6b51eef73ac9b7d2b193a1e98 (diff)
Add support for ETO_PDY in WMF/EMF
Currently it is implemented by making all characters different text arrays. Unit test included. Change-Id: I850bf192cf5d978a126d3f37b1084021d37bdf30 Reviewed-on: https://gerrit.libreoffice.org/32490 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'test')
-rw-r--r--test/source/mtfxmldump.cxx17
1 files changed, 10 insertions, 7 deletions
diff --git a/test/source/mtfxmldump.cxx b/test/source/mtfxmldump.cxx
index e89c1cd0983c..3b208753b6e2 100644
--- a/test/source/mtfxmldump.cxx
+++ b/test/source/mtfxmldump.cxx
@@ -421,15 +421,18 @@ void MetafileXmlDump::writeXml(const GDIMetaFile& rMetaFile, XmlWriter& rWriter)
rWriter.attribute("index", aIndex);
rWriter.attribute("length", aLength);
- rWriter.startElement("dxarray");
- OUString sDxLengthString;
- for (sal_Int32 i = 0; i < aLength; ++i)
+ if (pMetaTextArrayAction->GetDXArray())
{
- sDxLengthString += OUString::number(pMetaTextArrayAction->GetDXArray()[aIndex+i]);
- sDxLengthString += " ";
+ rWriter.startElement("dxarray");
+ OUString sDxLengthString;
+ for (sal_Int32 i = 0; i < aLength; ++i)
+ {
+ sDxLengthString += OUString::number(pMetaTextArrayAction->GetDXArray()[aIndex + i]);
+ sDxLengthString += " ";
+ }
+ rWriter.content(sDxLengthString);
+ rWriter.endElement();
}
- rWriter.content(sDxLengthString);
- rWriter.endElement();
rWriter.startElement("text");
rWriter.content(pMetaTextArrayAction->GetText());