summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
Diffstat (limited to 'oox')
-rw-r--r--oox/source/drawingml/customshapepresetdata.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/oox/source/drawingml/customshapepresetdata.cxx b/oox/source/drawingml/customshapepresetdata.cxx
index 49cb2c2dc102..a3740a9bb6a5 100644
--- a/oox/source/drawingml/customshapepresetdata.cxx
+++ b/oox/source/drawingml/customshapepresetdata.cxx
@@ -647,11 +647,16 @@ void CustomShapeProperties::initializePresetDataMap()
OUString aName;
bool bNotDone = aStream.ReadLine(aLine);
PropertyMap aPropertyMap;
+ bool bFirst = true;
while (bNotDone)
{
static const OString aCommentPrefix("/* ");
if (aLine.startsWith(aCommentPrefix))
{
+ if (bFirst)
+ bFirst = false;
+ else
+ maPresetDataMap[StaticTokenMap::get().getTokenFromUnicode(aName)] = aPropertyMap;
aName = OStringToOUString(aLine.copy(aCommentPrefix.getLength(), aLine.getLength() - aCommentPrefix.getLength() - strlen(" */")), RTL_TEXTENCODING_UTF8);
}
else