mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-26 17:30:35 +05:00
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
This commit is contained in:
parent
072a73120b
commit
dda95cb5b7
@ -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 );
|
||||
|
Loading…
Reference in New Issue
Block a user