]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
22455: Error "No mesh elements assigned to a face" is raised instead of a simple...
authoreap <eap@opencascade.com>
Thu, 9 Jan 2014 15:08:07 +0000 (15:08 +0000)
committereap <eap@opencascade.com>
Thu, 9 Jan 2014 15:08:07 +0000 (15:08 +0000)
Append study entry to a failed sub-shape name,
else it's hard to find a sub-shape in the study

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 );