diff options
author | Korrawit Pruegsanusak <detective.conan.1412@gmail.com> | 2013-12-08 14:15:39 +0700 |
---|---|---|
committer | Korrawit Pruegsanusak <detective.conan.1412@gmail.com> | 2013-12-08 14:18:56 +0700 |
commit | a9562d5e3c91b04214013bf296de3156f891e167 (patch) | |
tree | 733351c0a2c2d03fc48b6745b6a559a4be416a38 /drawinglayer | |
parent | sd/qa/unit: move and rename some files for consistency (diff) | |
download | core-a9562d5e3c91b04214013bf296de3156f891e167.tar.gz core-a9562d5e3c91b04214013bf296de3156f891e167.zip |
XShapeDumper: empty name should not be dumped
Change-Id: Ic1ab8840c9e543cebf322de922b01739684789ad
Diffstat (limited to 'drawinglayer')
-rw-r--r-- | drawinglayer/source/dumper/XShapeDumper.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drawinglayer/source/dumper/XShapeDumper.cxx b/drawinglayer/source/dumper/XShapeDumper.cxx index 75b7bd3e5916..089640bae35d 100644 --- a/drawinglayer/source/dumper/XShapeDumper.cxx +++ b/drawinglayer/source/dumper/XShapeDumper.cxx @@ -1007,8 +1007,8 @@ void dumpMoveProtectAsAttribute(sal_Bool bMoveProtect, xmlTextWriterPtr xmlWrite void dumpNameAsAttribute(OUString sName, xmlTextWriterPtr xmlWriter) { - xmlTextWriterWriteFormatAttribute(xmlWriter, BAD_CAST("name"), "%s", - OUStringToOString(sName, RTL_TEXTENCODING_UTF8).getStr()); + if(!sName.isEmpty()) + xmlTextWriterWriteFormatAttribute(xmlWriter, BAD_CAST("name"), "%s", OUStringToOString(sName, RTL_TEXTENCODING_UTF8).getStr()); } void dumpSizeProtectAsAttribute(sal_Bool bSizeProtect, xmlTextWriterPtr xmlWriter) |