LCL, fix exception on adding first custom column (regresion introduced in r24057 #22775e7a58), issue #16021

git-svn-id: trunk@24070 -
This commit is contained in:
jesus 2010-03-17 17:56:27 +00:00
parent 0f10f9bfc1
commit d83ee6522b

View File

@ -10035,7 +10035,10 @@ var
i: Integer;
begin
{$ifdef NewCols}
result := Index;
if Index>Count-1 then
result := -1
else
result := Index;
{$else}
result := -1;
if Index>=0 then