From 965dcbfba80bb2873ee1e49d0385d2d0c4a3d9c3 Mon Sep 17 00:00:00 2001 From: mpa Date: Thu, 5 Jun 2014 15:55:29 +0400 Subject: [PATCH] Correction of code for bi-linked nodes --- src/DependencyTree/DependencyTree_View.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/DependencyTree/DependencyTree_View.cxx b/src/DependencyTree/DependencyTree_View.cxx index 42e8715e7..3f1c51bfa 100644 --- a/src/DependencyTree/DependencyTree_View.cxx +++ b/src/DependencyTree/DependencyTree_View.cxx @@ -151,8 +151,8 @@ void DependencyTree_View::mouseMoveEvent( QMouseEvent *event ) QGraphicsView::mouseMoveEvent( event ); ArrowsInfo::const_iterator i; for( i = myArrows.begin(); i != myArrows.end(); i++ ) { - DependencyTree_Arrow* arrow = myArrows[ i->first ]; - arrow->update(); + if( DependencyTree_Arrow* arrow = myArrows[ i->first ] ) + arrow->update(); } } @@ -724,6 +724,8 @@ void DependencyTree_View::getNewTreeModel( bool theUseSelectedObject, bool theUs objectsEntry->length( mainObjects.Extent() ); for ( SALOME_ListIteratorOfListIO It( mainObjects ); It.More(); It.Next(), iter++ ) { Handle( SALOME_InteractiveObject ) io = It.Value(); + if( !io->hasEntry() ) + continue; GEOM::GEOM_Object_var geomObject = GEOM::GEOM_Object::_nil(); geomObject = GEOMBase::ConvertIOinGEOMObject( io ); QString entry = geomObject->GetEntry(); -- 2.39.2