encode names of constraints when writing to XML
This commit is contained in:
@@ -29,6 +29,7 @@
|
||||
#include <Base/Writer.h>
|
||||
#include <Base/Reader.h>
|
||||
#include <Base/Tools.h>
|
||||
#include <App/Property.h>
|
||||
#include <QDateTime>
|
||||
|
||||
#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() << "<Constrain "
|
||||
<< "Name=\"" << Name << "\" "
|
||||
<< "Name=\"" << encodeName << "\" "
|
||||
<< "Type=\"" << (int)Type << "\" ";
|
||||
if(this->Type==InternalAlignment)
|
||||
writer.Stream()
|
||||
|
||||
Reference in New Issue
Block a user