]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
PAL12081 - crash if to create scalar map on vitesse/0 after import TimeStamps.med
authorasl <asl@opencascade.com>
Wed, 5 Apr 2006 08:06:31 +0000 (08:06 +0000)
committerasl <asl@opencascade.com>
Wed, 5 Apr 2006 08:06:31 +0000 (08:06 +0000)
src/SUIT/SUIT_TreeSync.h

index 1dee6066a73a64cbe2f3920e30097b00f2832942..0b0b59279b6660822984af5029bc2a4f692bf592 100644 (file)
@@ -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
        {