- Fixed UpdateSortOrder to handle off-screen updates correctly

This commit is contained in:
Andreas Schneider 2009-12-03 15:38:11 +01:00
parent a74bfce923
commit 0f2130730b
1 changed files with 2 additions and 1 deletions

View File

@ -1421,7 +1421,8 @@ begin
current := current^.Next;
end;
if oldNode <> newNodePosition then
//oldNode = nil, if the change happend out-of-screen
if (oldNode <> nil ) and (oldNode <> newNodePosition) then
begin
if oldNodePrev <> oldNode then
begin