From: eap Date: Thu, 14 Nov 2013 15:15:27 +0000 (+0000) Subject: 22406: EDF SMESH Regression : Items are missing in group contextual menu X-Git-Tag: V7_3_0a1~62 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=813092187cef9d7f11b5d74e1c73db985c6e8eba;p=modules%2Fsmesh.git 22406: EDF SMESH Regression : Items are missing in group contextual menu Fix the previous "improvement" --- 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;