From: nds Date: Wed, 10 Oct 2007 07:32:44 +0000 (+0000) Subject: Exception on build tree. X-Git-Tag: TG_Saint_Valentine-Day~26 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=3b645315b744de6df490ba767868e16999a90243;p=modules%2Fgui.git Exception on build tree. --- diff --git a/src/SUIT/SUIT_TreeModel.cxx b/src/SUIT/SUIT_TreeModel.cxx index 48f486896..57b0033af 100755 --- a/src/SUIT/SUIT_TreeModel.cxx +++ b/src/SUIT/SUIT_TreeModel.cxx @@ -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( obj, treeItem( obj ), diff --git a/src/SUIT/SUIT_TreeSync.h b/src/SUIT/SUIT_TreeSync.h index ccceeaa0c..7bd6807bb 100644 --- a/src/SUIT/SUIT_TreeSync.h +++ b/src/SUIT/SUIT_TreeSync.h @@ -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; } }