mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-09 22:15:55 +02:00
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:
parent
0f10f9bfc1
commit
d83ee6522b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user