From: mpa Date: Thu, 5 Jun 2014 11:55:29 +0000 (+0400) Subject: Correction of code for bi-linked nodes X-Git-Tag: V7_5_0a1~50^2~22 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=965dcbfba80bb2873ee1e49d0385d2d0c4a3d9c3;p=modules%2Fgeom.git Correction of code for bi-linked nodes --- 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();