From: eap Date: Fri, 11 May 2012 11:39:51 +0000 (+0000) Subject: in bool _pyGen::IsGeomObject(const _pyID& theObjID) check that X-Git-Tag: V6_5_0~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=cbfa797d42683ba1c42c8dfc06ad43881a1e839f;p=modules%2Fsmesh.git in bool _pyGen::IsGeomObject(const _pyID& theObjID) check that IsStudyEntry( theObjID ), else e.g. "0.00173968" is treated as a removed geometry and "NETGEN_2D_Parameters.SetMinSize( 0.00173968 )" leads to erasing a mesh to which NETGEN_2D_Parameters is assigned. --- diff --git a/src/SMESH_I/SMESH_2smeshpy.cxx b/src/SMESH_I/SMESH_2smeshpy.cxx index dfacfd77c..21fca4ed9 100644 --- a/src/SMESH_I/SMESH_2smeshpy.cxx +++ b/src/SMESH_I/SMESH_2smeshpy.cxx @@ -1234,7 +1234,8 @@ bool _pyGen::IsGeomObject(const _pyID& theObjID) const if ( myGeomIDNb ) { return ( myGeomIDIndex <= theObjID.Length() && - int( theObjID.Value( myGeomIDIndex )) == myGeomIDNb); + int( theObjID.Value( myGeomIDIndex )) == myGeomIDNb && + _pyCommand::IsStudyEntry( theObjID )); } return false; }