IDE: fixed AV in anchoreditor. Patch by FTurtle. issue #31177

git-svn-id: trunk@53821 -
This commit is contained in:
zeljko 2017-01-01 10:24:59 +00:00
parent dbe940a8c7
commit e5c103cca1

View File

@ -642,7 +642,7 @@ end;
function compareControlTop(Item1, Item2: pointer): Integer;
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 Result:=0;
end;