FIX: Bug [0001046] "Access Violation Error"

This commit is contained in:
Alexander Koblov 2015-03-20 14:49:10 +00:00
commit 196103ca0a

View file

@ -362,9 +362,9 @@ var
Index:longint;
DestinationNode:TTreeNode;
begin
DestinationNode:=tvDirectoryHotlist.GetNodeAt(X, Y);
DestinationNode:= tvDirectoryHotlist.GetNodeAt(X, Y);
if tvDirectoryHotlist.SelectionCount>0 then
if Assigned(DestinationNode) and (tvDirectoryHotlist.SelectionCount > 0) then
begin
//If we move toward the end, we place the moved item *after* the destination.
//If we move toward the beginning, we place the moved item *before* the destination.