mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2024-12-25 17:00:35 +05:00
Fix of 0022476: EDF 2828 GEOM [XAO] : Crash when exporting to .xao (or operation doesn't terminate)
This commit is contained in:
parent
4385fae909
commit
855ee33e8a
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user