From 12e92fef31f44e6d459e90ca2097f4d262a08d09 Mon Sep 17 00:00:00 2001 From: wmayer Date: Thu, 5 Sep 2019 18:51:35 +0200 Subject: [PATCH] encode keys of PropertyMap when saving as XML --- src/App/PropertyStandard.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/App/PropertyStandard.cpp b/src/App/PropertyStandard.cpp index 7c963bad68..f7adbfd005 100644 --- a/src/App/PropertyStandard.cpp +++ b/src/App/PropertyStandard.cpp @@ -1973,8 +1973,10 @@ void PropertyMap::Save (Base::Writer &writer) const { writer.Stream() << writer.ind() << "" << endl; writer.incInd(); - for (std::map::const_iterator it = _lValueList.begin();it!= _lValueList.end(); ++it) - writer.Stream() << writer.ind() << "first <<"\" value=\"" << encodeAttribute(it->second) <<"\"/>" << endl; + for (std::map::const_iterator it = _lValueList.begin();it!= _lValueList.end(); ++it) { + writer.Stream() << writer.ind() << "first) + << "\" value=\"" << encodeAttribute(it->second) <<"\"/>" << endl; + } writer.decInd(); writer.Stream() << writer.ind() << "" << endl ;