mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-05 10:20:40 +02:00
IDE: fixed AV in anchoreditor. Patch by FTurtle. issue #31177
git-svn-id: trunk@53821 -
This commit is contained in:
parent
dbe940a8c7
commit
e5c103cca1
@ -642,7 +642,7 @@ end;
|
|||||||
|
|
||||||
function compareControlTop(Item1, Item2: pointer): Integer;
|
function compareControlTop(Item1, Item2: pointer): Integer;
|
||||||
begin
|
begin
|
||||||
if TControl(Item1).Top<TControl(TControl).Top then Result:=-1
|
if TControl(Item1).Top<TControl(Item2).Top then Result:=-1
|
||||||
else if TControl(Item1).Top>TControl(Item2).Top then Result:=1
|
else if TControl(Item1).Top>TControl(Item2).Top then Result:=1
|
||||||
else Result:=0;
|
else Result:=0;
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user