mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-11-11 16:19:16 +05:00
22455: Error "No mesh elements assigned to a face" is raised instead of a simple warning
1) Fix finding a shape in a study 2) Append study entry to a name of published failed sub-shape
This commit is contained in:
parent
dda95cb5b7
commit
b117205bfd
@ -382,7 +382,11 @@ namespace SMESH
|
||||
if ( !geom->_is_nil() ) {
|
||||
GEOM::ListOfLong_var list = geom->GetSubShapeIndices();
|
||||
if ( list->length() == 1 && list[0] == subShapeID )
|
||||
subSO = it->Value();
|
||||
{
|
||||
GEOM::GEOM_Object_var mainGO = geom->GetMainShape();
|
||||
if ( aMainShape->IsSame( mainGO ))
|
||||
subSO = it->Value();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1193,7 +1197,8 @@ void SMESHGUI_BaseComputeOp::onPublishShape()
|
||||
if ( so->_is_nil() ) {
|
||||
CORBA::String_var name = so->GetName();
|
||||
CORBA::String_var entry = so->GetID();
|
||||
table()->item( r, COL_SHAPE )->setText( name.in() );
|
||||
QString shapeText = QString("%1 (%2)").arg( name.in() ).arg( entry.in() );
|
||||
table()->item( r, COL_SHAPE )->setText( shapeText );
|
||||
table()->item( r, COL_PUBLISHED )->setText( entry.in() );
|
||||
}
|
||||
break;
|
||||
@ -1206,7 +1211,8 @@ void SMESHGUI_BaseComputeOp::onPublishShape()
|
||||
if ( !so->_is_nil() ) {
|
||||
CORBA::String_var name = so->GetName();
|
||||
CORBA::String_var entry = so->GetID();
|
||||
table()->item( row, COL_SHAPE )->setText( name.in() );
|
||||
QString shapeText = QString("%1 (%2)").arg( name.in() ).arg( entry.in() );
|
||||
table()->item( row, COL_SHAPE )->setText( shapeText );
|
||||
table()->item( row, COL_PUBLISHED )->setText( entry.in() );
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user