fix the previous "improvement"

This commit is contained in:
eap 2012-05-02 07:46:47 +00:00
parent 4ec1bfaca1
commit 7f69b1fe3e

View File

@ -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 );
}
}