From: eap Date: Mon, 21 May 2007 07:33:28 +0000 (+0000) Subject: NPAL15983 (EDF PAL 413: Bug when displaying empty groups) X-Git-Tag: V3_2_7~32 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=3008c918937b0bae8f5ee5b497efecb5bb9ea64b;p=modules%2Fgeom.git NPAL15983 (EDF PAL 413: Bug when displaying empty groups) void GEOM_Displayer::Update( SALOME_OCCPrs* prs ) { ... + if (!TopoDS_Iterator(myShape).More()) return; --- diff --git a/src/GEOMGUI/GEOM_Displayer.cxx b/src/GEOMGUI/GEOM_Displayer.cxx index 60fbb31ec..8e52ce44c 100644 --- a/src/GEOMGUI/GEOM_Displayer.cxx +++ b/src/GEOMGUI/GEOM_Displayer.cxx @@ -82,6 +82,7 @@ #include #include #include +#include // VTK Includes #include @@ -525,8 +526,11 @@ void GEOM_Displayer::Update( SALOME_OCCPrs* prs ) Handle(GEOM_AISShape) AISShape; if (myType == GEOM_VECTOR) AISShape = new GEOM_AISVector (myShape, ""); - else + else { + if (!TopoDS_Iterator(myShape).More()) + return;// NPAL15983 (Bug when displaying empty groups) AISShape = new GEOM_AISShape (myShape, ""); + } // Temporary staff: vertex must be infinite for correct visualization AISShape->SetInfiniteState( myShape.Infinite() || myShape.ShapeType() == TopAbs_VERTEX );