]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
Correction of code for bi-linked nodes
authormpa <mpa@opencascade.com>
Thu, 5 Jun 2014 11:55:29 +0000 (15:55 +0400)
committermpa <mpa@opencascade.com>
Thu, 5 Jun 2014 11:55:29 +0000 (15:55 +0400)
src/DependencyTree/DependencyTree_View.cxx

index 42e8715e7801ee76824b815b87946f8fef002e6d..3f1c51bfa55f627b4ef2b625c5846072a805503c 100644 (file)
@@ -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();