]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
#19078 [CEA] Mesh Group - Group on filter
authoreap <eap@opencascade.com>
Fri, 8 May 2020 18:48:05 +0000 (21:48 +0300)
committereap <eap@opencascade.com>
Fri, 8 May 2020 18:48:05 +0000 (21:48 +0300)
src/GEOMBase/GEOMBase.cxx

index 3b96a53315f40022c1ebace1df1d4f632d8c98e1..883dba0d3b2b117a691e9d3d27622fdd236965bd 100644 (file)
@@ -745,7 +745,10 @@ bool GEOMBase::GetShape( GEOM::GEOM_Object_ptr object, TopoDS_Shape& shape, cons
   if ( !CORBA::is_nil( object ) ) {
     TopAbs_ShapeEnum stype = (TopAbs_ShapeEnum)( object->GetShapeType() );
     if ( type == TopAbs_SHAPE || type == stype )
-      shape = GEOM_Client::get_client().GetShape(  GeometryGUI::GetGeomGen(), object );
+    {
+      GEOM::GEOM_Gen_var gen = object->GetGen();
+      shape = GEOM_Client::get_client().GetShape( gen, object );
+    }
   }
   return !shape.IsNull();
 }