Prechádzať zdrojové kódy

* Fixed bug #25049

git-svn-id: trunk@26721 -
michael 11 rokov pred
rodič
commit
68429834a7
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      rtl/objpas/classes/collect.inc

+ 1 - 1
rtl/objpas/classes/collect.inc

@@ -33,7 +33,6 @@ begin
     begin
     If FCollection<>Nil then FCollection.RemoveItem(Self);
     if Value<>Nil then Value.InsertItem(Self);
-    FCollection:=Value;
     end;
 end;
 
@@ -203,6 +202,7 @@ begin
   If Not(Item Is FitemClass) then
     exit;
   FItems.add(Pointer(Item));
+  Item.FCollection:=Self;
   Item.FID:=FNextID;
   inc(FNextID);
   SetItemName(Item);