From 813092187cef9d7f11b5d74e1c73db985c6e8eba Mon Sep 17 00:00:00 2001 From: eap Date: Thu, 14 Nov 2013 15:15:27 +0000 Subject: [PATCH] 22406: EDF SMESH Regression : Items are missing in group contextual menu Fix the previous "improvement" --- src/SMESHGUI/SMESHGUI_Selection.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SMESHGUI/SMESHGUI_Selection.cxx b/src/SMESHGUI/SMESHGUI_Selection.cxx index 5656e4b44..6e82d5b46 100644 --- a/src/SMESHGUI/SMESHGUI_Selection.cxx +++ b/src/SMESHGUI/SMESHGUI_Selection.cxx @@ -401,7 +401,7 @@ int SMESHGUI_Selection::numberOfNodes( int ind ) const return aSubMeshObj->GetNumberOfNodes(true); SMESH::SMESH_GroupBase_var aGroupObj = SMESH::SMESH_GroupBase::_narrow( obj ); if ( !aGroupObj->_is_nil() ) - return aGroupObj->IsEmpty(); // aGroupObj->Size(); + return aGroupObj->IsEmpty() ? 0 : 1; // aGroupObj->Size(); } } return 0; -- 2.39.2