]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Exception on build tree.
authornds <nds@opencascade.com>
Wed, 10 Oct 2007 07:32:44 +0000 (07:32 +0000)
committernds <nds@opencascade.com>
Wed, 10 Oct 2007 07:32:44 +0000 (07:32 +0000)
src/SUIT/SUIT_TreeModel.cxx
src/SUIT/SUIT_TreeSync.h

index 48f486896c0f87b0dbe6aa23b76c5793eb4c08cd..57b0033af5b34e2120e693e255d221bdb0af2214 100755 (executable)
@@ -911,8 +911,8 @@ void SUIT_TreeModel::updateTree( SUIT_DataObject* obj )
   if ( !obj )
     obj = root();
 
-  else if ( obj->root() != root() )
-    return;
+  //else if ( obj->root() != root() )
+  //  return;
 
   synchronize<ObjPtr,ItemPtr,SUIT_TreeModel::TreeSync>( obj, 
                                                        treeItem( obj ), 
index ccceeaa0cafe2daa2a8a53e5ada6d575a1e10629..7bd6807bbd8ae8714d419892d71e1c3f76e5bbd4 100644 (file)
@@ -151,14 +151,14 @@ TrgItem synchronize( const SrcItem& r1, const TrgItem& r2, const TreeData& td )
   }
   else {
     TrgItem new_r2 = td.nullTrg();
-    if ( r1 != td.nullSrc() ) {
+    /*if ( r1 != td.nullSrc() ) {
       // add new item (recursively)
       new_r2 = createSubTree( r1, td.parent( r2 ), r2, td );
     }
     if ( r2 != td.nullTrg() ) {
       // delete old one (if it is not null)
       td.deleteItemWithChildren( r2 );
-    }
+    }*/
     return new_r2;
   }
 }