From: akl Date: Tue, 9 Jul 2013 11:17:47 +0000 (+0000) Subject: Fix: restore "Show/Hide/Show Only" for GEOM component. X-Git-Tag: BR_hydro_v_0_3_1~160 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=078431b1adab3e615d8ee2c319d30690d2bc4a8f;p=modules%2Fgeom.git Fix: restore "Show/Hide/Show Only" for GEOM component. --- diff --git a/src/GEOMGUI/GEOM_Displayer.cxx b/src/GEOMGUI/GEOM_Displayer.cxx index 8f832c9d3..c24f48306 100644 --- a/src/GEOMGUI/GEOM_Displayer.cxx +++ b/src/GEOMGUI/GEOM_Displayer.cxx @@ -1701,8 +1701,9 @@ void GEOM_Displayer::setShape( const TopoDS_Shape& theShape ) bool GEOM_Displayer::canBeDisplayed( const QString& entry, const QString& viewer_type ) const { _PTR(SObject) anObj = getStudy()->studyDS()->FindObjectID( (const char*)entry.toLatin1() ); - GEOM::GEOM_Object_var aGeomObj = GEOM::GEOM_Object::_narrow(GeometryGUI::ClientSObjectToObject(anObj)); // enable displaying of GEOM objects only - return !CORBA::is_nil( aGeomObj ) && (viewer_type == SOCC_Viewer::Type() || viewer_type == SVTK_Viewer::Type()); + GEOM::GEOM_Object_var aGeomObj = GEOM::GEOM_Object::_narrow(GeometryGUI::ClientSObjectToObject(anObj)); // enable displaying of GEOM objects + GEOM::GEOM_Gen_var aCompObj = GEOM::GEOM_Gen::_narrow(GeometryGUI::ClientSObjectToObject(anObj)); // enable displaying of whole GEOM component + return ( !CORBA::is_nil( aGeomObj ) || !CORBA::is_nil( aCompObj ) ) && (viewer_type == SOCC_Viewer::Type() || viewer_type == SVTK_Viewer::Type()); } int GEOM_Displayer::SetDisplayMode( const int theMode )