mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2024-11-11 16:19:17 +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;
|
std::ostringstream streamShape;
|
||||||
BRepTools::Write(m_shape, streamShape);
|
BRepTools::Write(m_shape, streamShape);
|
||||||
std::string data = streamShape.str();
|
return streamShape.str();
|
||||||
char* res = new char[data.size()];
|
|
||||||
strcpy(res, data.c_str());
|
|
||||||
return res;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void BrepGeometry::setShapeString(const std::string& shape)
|
void BrepGeometry::setShapeString(const std::string& shape)
|
||||||
|
Loading…
Reference in New Issue
Block a user