mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-26 17:30:35 +05:00
22261: EDF 2698 SMESH: Memory leak when displaying 2D quadratic elements as arcs
In createSubMesh() fix getting a sub-mesh ID for a a sub-mesh on group
This commit is contained in:
parent
b8a3fc622b
commit
d50d493408
@ -2121,9 +2121,9 @@ SMESH::SMESH_subMesh_ptr SMESH_Mesh_i::createSubMesh( GEOM::GEOM_Object_ptr theS
|
||||
{
|
||||
if(MYDEBUG) MESSAGE( "createSubMesh" );
|
||||
TopoDS_Shape myLocSubShape = _gen_i->GeomObjectToShape(theSubShapeObject);
|
||||
const int subMeshId = _impl->GetMeshDS()->ShapeToIndex( myLocSubShape );
|
||||
|
||||
::SMESH_subMesh * mySubMesh = _impl->GetSubMesh(myLocSubShape);
|
||||
const int subMeshId = mySubMesh->GetId();
|
||||
|
||||
SMESH_subMesh_i * subMeshServant = new SMESH_subMesh_i(myPOA, _gen_i, this, subMeshId);
|
||||
SMESH::SMESH_subMesh_var subMesh = subMeshServant->_this();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user