Browse Source

+ Minor fix by Mattias Gaertner

michael 22 years ago
parent
commit
4f9a6ba5a2
1 changed files with 5 additions and 5 deletions
  1. 5 5
      fcl/inc/classes.inc

+ 5 - 5
fcl/inc/classes.inc

@@ -297,10 +297,7 @@ begin
     I:=0;
     I:=0;
     While (I<Count) and not H.AClass.InheritsFrom(TInitHandler(Items[i]).AClass) do 
     While (I<Count) and not H.AClass.InheritsFrom(TInitHandler(Items[i]).AClass) do 
       Inc(I);
       Inc(I);
-    If I=Count then
-      InitHandlerList.Add(H)
-    else
-      InitHandlerList.Insert(I,H);
+    InitHandlerList.Insert(I,H);
     end;  
     end;  
 end;
 end;
 
 
@@ -1215,7 +1212,10 @@ end;
 
 
 {
 {
   $Log$
   $Log$
-  Revision 1.13  2003-06-04 15:27:24  michael
+  Revision 1.14  2003-06-04 17:40:44  michael
+  + Minor fix by Mattias Gaertner
+
+  Revision 1.13  2003/06/04 15:27:24  michael
   + TDataModule en InitInheritedComponent erbij voor Delphi 6 compatibility
   + TDataModule en InitInheritedComponent erbij voor Delphi 6 compatibility
 
 
   Revision 1.12  2003/04/19 14:29:25  michael
   Revision 1.12  2003/04/19 14:29:25  michael