From: eap Date: Wed, 2 May 2012 07:46:47 +0000 (+0000) Subject: fix the previous "improvement" X-Git-Tag: V6_5_0b1~6 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=7f69b1fe3ed6b845aaffbff657a2d15e23fc43b6;p=modules%2Fsmesh.git fix the previous "improvement" --- diff --git a/src/SMESH_I/SMESH_Filter_i.cxx b/src/SMESH_I/SMESH_Filter_i.cxx index 6ef4174d1..8fd248b4b 100644 --- a/src/SMESH_I/SMESH_Filter_i.cxx +++ b/src/SMESH_I/SMESH_Filter_i.cxx @@ -494,8 +494,8 @@ static TopoDS_Shape getShapeByName( const char* theName ) SALOMEDS::Study::ListOfSObject_var aList = aStudy->FindObjectByName( theName, "GEOM" ); if ( aList->length() > 0 ) { - SALOMEDS::SObject_var aSObj = aList[ 0 ].in(); - GEOM::GEOM_Object_var aGeomObj = GEOM::GEOM_Object::_narrow( aSObj ); + CORBA::Object_var anObj = aList[ 0 ]->GetObject(); + GEOM::GEOM_Object_var aGeomObj = GEOM::GEOM_Object::_narrow( anObj ); return aSMESHGen->GeomObjectToShape( aGeomObj ); } } @@ -511,7 +511,7 @@ static TopoDS_Shape getShapeByID (const char* theID) if ( !aStudy->_is_nil() ) { SALOMEDS::SObject_var aSObj = aStudy->FindObjectID(theID); if ( !aSObj->_is_nil() ) { - CORBA::Object_var obj = aSObj->GetObject(); + CORBA::Object_var obj = aSObj->GetObject(); GEOM::GEOM_Object_var aGeomObj = GEOM::GEOM_Object::_narrow(obj); return aSMESHGen->GeomObjectToShape( aGeomObj ); }