From 444cfc397a21b69eeff11d585efa5dfd8f61b3f3 Mon Sep 17 00:00:00 2001 From: wmayer Date: Sat, 22 Apr 2017 19:09:13 +0200 Subject: [PATCH] encode names of constraints when writing to XML --- src/Mod/Sketcher/App/Constraint.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Mod/Sketcher/App/Constraint.cpp b/src/Mod/Sketcher/App/Constraint.cpp index 4bcb73d0f9ea..2bdbe740bf6c 100644 --- a/src/Mod/Sketcher/App/Constraint.cpp +++ b/src/Mod/Sketcher/App/Constraint.cpp @@ -29,6 +29,7 @@ #include #include #include +#include #include #include "Constraint.h" @@ -174,8 +175,9 @@ unsigned int Constraint::getMemSize (void) const void Constraint::Save (Writer &writer) const { + std::string encodeName = App::Property::encodeAttribute(Name); writer.Stream() << writer.ind() << "Type==InternalAlignment) writer.Stream()