mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-24 10:20: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;
|
i: Integer;
|
||||||
begin
|
begin
|
||||||
{$ifdef NewCols}
|
{$ifdef NewCols}
|
||||||
result := Index;
|
if Index>Count-1 then
|
||||||
|
result := -1
|
||||||
|
else
|
||||||
|
result := Index;
|
||||||
{$else}
|
{$else}
|
||||||
result := -1;
|
result := -1;
|
||||||
if Index>=0 then
|
if Index>=0 then
|
||||||
|
Loading…
Reference in New Issue
Block a user