* fix for 15597. Added returnvalue to early-out exit().

git-svn-id: trunk@14818 -
This commit is contained in:
marco 2010-01-27 19:49:28 +00:00
parent f8b8e3f48d
commit 2c149e805a

View File

@ -174,7 +174,7 @@ function TFPList.Expand: TFPList;
var
IncSize : Longint;
begin
if FCount < FCapacity then exit;
if FCount < FCapacity then exit(self);
IncSize := 4;
if FCapacity > 3 then IncSize := IncSize + 4;
if FCapacity > 8 then IncSize := IncSize+8;