From: eap Date: Thu, 9 Jan 2014 15:08:07 +0000 (+0000) Subject: 22455: Error "No mesh elements assigned to a face" is raised instead of a simple... X-Git-Tag: V7_4_0a1~113 X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=commitdiff_plain;h=dda95cb5b75a7f8a9e0521622a68b3f0d54a663e 22455: Error "No mesh elements assigned to a face" is raised instead of a simple warning Append study entry to a failed sub-shape name, else it's hard to find a sub-shape in the study --- diff --git a/src/SMESHGUI/SMESHGUI_ComputeDlg.cxx b/src/SMESHGUI/SMESHGUI_ComputeDlg.cxx index edb1f7dba..5e9442022 100644 --- a/src/SMESHGUI/SMESHGUI_ComputeDlg.cxx +++ b/src/SMESHGUI/SMESHGUI_ComputeDlg.cxx @@ -439,8 +439,10 @@ namespace SMESH QString shapeText(int subShapeID, GEOM::GEOM_Object_var aMainShape ) { QString text; - if ( _PTR(SObject) aSO = getSubShapeSO( subShapeID, aMainShape )) - text = aSO->GetName().c_str(); + if ( _PTR(SObject) aSO = getSubShapeSO( subShapeID, aMainShape )) { + text = aSO->GetName().c_str(); + text += QString(" (%1)").arg( aSO->GetID().c_str() ); + } else { text = QString("#%1").arg( subShapeID ); GEOM::GEOM_Object_wrap shape = getSubShape( subShapeID, aMainShape );