mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2024-12-26 09:20:35 +05:00
Correction of code for bi-linked nodes
This commit is contained in:
parent
bd9c3283e5
commit
965dcbfba8
@ -151,8 +151,8 @@ void DependencyTree_View::mouseMoveEvent( QMouseEvent *event )
|
|||||||
QGraphicsView::mouseMoveEvent( event );
|
QGraphicsView::mouseMoveEvent( event );
|
||||||
ArrowsInfo::const_iterator i;
|
ArrowsInfo::const_iterator i;
|
||||||
for( i = myArrows.begin(); i != myArrows.end(); i++ ) {
|
for( i = myArrows.begin(); i != myArrows.end(); i++ ) {
|
||||||
DependencyTree_Arrow* arrow = myArrows[ i->first ];
|
if( DependencyTree_Arrow* arrow = myArrows[ i->first ] )
|
||||||
arrow->update();
|
arrow->update();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -724,6 +724,8 @@ void DependencyTree_View::getNewTreeModel( bool theUseSelectedObject, bool theUs
|
|||||||
objectsEntry->length( mainObjects.Extent() );
|
objectsEntry->length( mainObjects.Extent() );
|
||||||
for ( SALOME_ListIteratorOfListIO It( mainObjects ); It.More(); It.Next(), iter++ ) {
|
for ( SALOME_ListIteratorOfListIO It( mainObjects ); It.More(); It.Next(), iter++ ) {
|
||||||
Handle( SALOME_InteractiveObject ) io = It.Value();
|
Handle( SALOME_InteractiveObject ) io = It.Value();
|
||||||
|
if( !io->hasEntry() )
|
||||||
|
continue;
|
||||||
GEOM::GEOM_Object_var geomObject = GEOM::GEOM_Object::_nil();
|
GEOM::GEOM_Object_var geomObject = GEOM::GEOM_Object::_nil();
|
||||||
geomObject = GEOMBase::ConvertIOinGEOMObject( io );
|
geomObject = GEOMBase::ConvertIOinGEOMObject( io );
|
||||||
QString entry = geomObject->GetEntry();
|
QString entry = geomObject->GetEntry();
|
||||||
|
Loading…
Reference in New Issue
Block a user