From 56d59df6b5a6f5ca817aaea5a900119477cb7c92 Mon Sep 17 00:00:00 2001 From: jfa Date: Wed, 6 Jun 2007 13:09:49 +0000 Subject: [PATCH] Fix regression of points displaying. --- src/GEOMGUI/GEOM_Displayer.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/GEOMGUI/GEOM_Displayer.cxx b/src/GEOMGUI/GEOM_Displayer.cxx index 8e52ce44c..0771cc77c 100644 --- a/src/GEOMGUI/GEOM_Displayer.cxx +++ b/src/GEOMGUI/GEOM_Displayer.cxx @@ -527,7 +527,8 @@ void GEOM_Displayer::Update( SALOME_OCCPrs* prs ) if (myType == GEOM_VECTOR) AISShape = new GEOM_AISVector (myShape, ""); else { - if (!TopoDS_Iterator(myShape).More()) + if (myShape.ShapeType() != TopAbs_VERTEX && // fix pb with not displayed points + !TopoDS_Iterator(myShape).More()) return;// NPAL15983 (Bug when displaying empty groups) AISShape = new GEOM_AISShape (myShape, ""); } @@ -1218,6 +1219,8 @@ int GEOM_Displayer::GetDisplayMode() const int GEOM_Displayer::UnsetDisplayMode() { + int aPrevMode = myDisplayMode; SUIT_ResourceMgr* resMgr = SUIT_Session::session()->resourceMgr(); myDisplayMode = resMgr->integerValue( "Geometry", "display_mode", 0 ); + return aPrevMode; } -- 2.39.2