From: asl Date: Wed, 5 Apr 2006 08:06:31 +0000 (+0000) Subject: PAL12081 - crash if to create scalar map on vitesse/0 after import TimeStamps.med X-Git-Tag: T3_2_0b1_pre1~44 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d18be481ba6ac53f75b6263993709352c887ad62;p=modules%2Fgui.git PAL12081 - crash if to create scalar map on vitesse/0 after import TimeStamps.med --- diff --git a/src/SUIT/SUIT_TreeSync.h b/src/SUIT/SUIT_TreeSync.h index 1dee6066a..0b0b59279 100644 --- a/src/SUIT/SUIT_TreeSync.h +++ b/src/SUIT/SUIT_TreeSync.h @@ -63,7 +63,9 @@ TrgItem synchronize( const SrcItem& r1, const TrgItem& r2, const TreeData& td ) if( item.myTrg==td.nullTrg() ) { //to add - lastItem = createSubTree( item.mySrc, r2, lastItem, lastItem==td.nullTrg(), td ); + TrgItem nitem = createSubTree( item.mySrc, r2, lastItem, lastItem==td.nullTrg(), td ); + if( nitem!=td.nullTrg() ) + lastItem = nitem; } else {