summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
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());