]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
partially rollback of previous fix
authorasl <asl@opencascade.com>
Wed, 5 Apr 2006 06:32:19 +0000 (06:32 +0000)
committerasl <asl@opencascade.com>
Wed, 5 Apr 2006 06:32:19 +0000 (06:32 +0000)
src/SUIT/SUIT_TreeSync.h

index b39b539ae14d412038da32ba84eebb08cff7aaa5..1dee6066a73a64cbe2f3920e30097b00f2832942 100644 (file)
@@ -74,12 +74,12 @@ TrgItem synchronize( const SrcItem& r1, const TrgItem& r2, const TreeData& td )
        }
       }
     }
-      
+
     return r2;
   }
   else
   {
-    TrgItem new_r2 = createSubTree( r1, td.parent( r2 ), r2, r2==td.nullTrg(), td );
+    TrgItem new_r2 = createSubTree( r1, td.parent( r2 ), r2, false, td );
     if( r2!=td.nullTrg() )
       td.deleteItemWithChildren( r2 );
     return new_r2;
@@ -104,8 +104,8 @@ void diffSiblings( const SrcItem& src, const TrgItem& trg,
                   QValueList < DiffItem < SrcItem,TrgItem > >& d,
                   const TreeData& td )
 {
-  if( src==td.nullSrc() || trg==td.nullTrg() )
-    return;
+  //if( src==td.nullSrc() || trg==td.nullTrg() )
+  //  return;
 
   QValueList<SrcItem> src_ch;
   QValueList<TrgItem> trg_ch;