X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSMESHGUI%2FSMESHGUI_MeshOp.cxx;fp=src%2FSMESHGUI%2FSMESHGUI_MeshOp.cxx;h=67408d72002239ff23c172e0279a38d0556016d9;hb=53a2fb6d670a8c71eb30dfa339447a25cd728e80;hp=13ad359cd248974aa38d8df02cf00c968107664f;hpb=4850129bdbdfa930a5fc0c2bd9b35331c4bbd600;p=modules%2Fsmesh.git diff --git a/src/SMESHGUI/SMESHGUI_MeshOp.cxx b/src/SMESHGUI/SMESHGUI_MeshOp.cxx index 13ad359cd..67408d720 100644 --- a/src/SMESHGUI/SMESHGUI_MeshOp.cxx +++ b/src/SMESHGUI/SMESHGUI_MeshOp.cxx @@ -551,17 +551,17 @@ void SMESHGUI_MeshOp::selectionDone() for ( ; aSubShapesIter != aGEOMs.end(); aSubShapesIter++, iSubSh++) { QString aSubGeomEntry = (*aSubShapesIter); _PTR(SObject) pSubGeom = studyDS()->FindObjectID(aSubGeomEntry.toLatin1().data()); - - if( pSubGeom ) { - SALOMEDS_SObject* sobj = _CAST(SObject,pSubGeom); - if( sobj ) { - GEOM::GEOM_Object_var aSubGeomVar = - GEOM::GEOM_Object::_narrow(sobj->GetObject()); - if( !aSubGeomVar->_is_nil() ){ - aSeq[iSubSh] = aSubGeomVar; - } - } - } + + if( pSubGeom ) { + SALOMEDS_SObject* sobj = _CAST(SObject,pSubGeom); + if( sobj ) { + GEOM::GEOM_Object_var aSubGeomVar = + GEOM::GEOM_Object::_narrow(sobj->GetObject()); + if( !aSubGeomVar->_is_nil() ){ + aSeq[iSubSh] = aSubGeomVar; + } + } + } } } else { // get geometry by selected sub-mesh