From 3b645315b744de6df490ba767868e16999a90243 Mon Sep 17 00:00:00 2001 From: nds Date: Wed, 10 Oct 2007 07:32:44 +0000 Subject: [PATCH] Exception on build tree. --- src/SUIT/SUIT_TreeModel.cxx | 4 ++-- src/SUIT/SUIT_TreeSync.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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; } } -- 2.39.2