Fix of 0022476: EDF 2828 GEOM [XAO] : Crash when exporting to .xao (or operation doesn't terminate)

This commit is contained in:
akl 2014-02-12 17:19:59 +04:00
parent 4385fae909
commit 855ee33e8a

View File

@ -53,10 +53,7 @@ const std::string BrepGeometry::getShapeString()
{
std::ostringstream streamShape;
BRepTools::Write(m_shape, streamShape);
std::string data = streamShape.str();
char* res = new char[data.size()];
strcpy(res, data.c_str());
return res;
return streamShape.str();
}
void BrepGeometry::setShapeString(const std::string& shape)