Salome HOME
22455: Error "No mesh elements assigned to a face" is raised instead of a simple...
[modules/smesh.git] / src / SMESHGUI / SMESHGUI_ComputeDlg.cxx
index edb1f7dbaaab0627e2fbe2c2b00da5507826cca5..5e94420228725a4ab7a7dc9b51caccf90830c87a 100644 (file)
@@ -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 );