Changeset 114 for Generics


Ignore:
Timestamp:
Jan 5, 2011, 7:51:16 AM (14 years ago)
Author:
george
Message:
  • Fixed: CoolDocking was not showing tab content on tab switch.
Location:
Generics/TemplateGenerics
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • Generics/TemplateGenerics/Generic/GenericList.inc

    r112 r114  
    33  TGList = class;
    44
    5   TGListSortCompare = function(const Item1, Item2: TGListItem): Integer of object;
     5  TGListSortCompare = function(Item1, Item2: TGListItem): Integer of object;
    66  TGListToStringConverter = function(Item: TGListItem): string;
    77  TGListFromStringConverter = function(Text: string): TGListItem;
     
    9191    IncSize := NewCapacity - Capacity;
    9292    // Expand
    93     if FCount = Capacity then begin
     93    if IncSize = 1 then begin
    9494      IncSize := 4;
    9595      if Capacity > 3 then IncSize := IncSize + 4;
    9696      if Capacity > 8 then IncSize := IncSize + 8;
    9797      if Capacity > 63 then IncSize := IncSize + Capacity shr 2; // Grow by one quarter
    98       Capacity := Capacity + IncSize;
    99     end;
     98    end;
     99    Capacity := Capacity + IncSize;
    100100  end else
    101101  if NewCapacity < Capacity then begin
  • Generics/TemplateGenerics/ReadMe.txt

    r109 r114  
    1010Email: robie@centrum.cz
    1111
     12
     13Main subversion repository:
     14http://svn.zdechov.net/svn/PascalClassLibrary/Generics/TemplateGenerics
Note: See TracChangeset for help on using the changeset viewer.