mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-18 14:00:33 +05:00
21680: EDF 2288 SMESH: creation of 0D elements from other elements
fix onTextChanged() for selectionMode() == CellSelection
This commit is contained in:
parent
9aa7dd10a4
commit
e47e273629
@ -491,9 +491,16 @@ void SMESHGUI_SelectionOp::onTextChanged( int, const QStringList& list )
|
||||
IdList ids; extractIds( list, ids, '\0' );
|
||||
IdList::const_iterator anIt = ids.begin(),
|
||||
aLast = ids.end();
|
||||
for( ; anIt!=aLast; anIt++ )
|
||||
if( const SMDS_MeshNode * n = aMesh->FindNode( *anIt ) )
|
||||
newIndices.Add( n->GetID() );
|
||||
if ( selectionMode() == NodeSelection )
|
||||
for( ; anIt!=aLast; anIt++ ) {
|
||||
if( const SMDS_MeshNode * n = aMesh->FindNode( *anIt ) )
|
||||
newIndices.Add( n->GetID() );
|
||||
}
|
||||
else
|
||||
for( ; anIt!=aLast; anIt++ ) {
|
||||
if( const SMDS_MeshElement* e = aMesh->FindElement( *anIt ) )
|
||||
newIndices.Add( e->GetID() );
|
||||
}
|
||||
|
||||
selector()->AddOrRemoveIndex( sel.First(), newIndices, false );
|
||||
highlight( sel.First(), true, true );
|
||||
|
Loading…
Reference in New Issue
Block a user