FIX: Crash on external drop into empty part of panel.

This commit is contained in:
cobines 2012-04-06 07:16:08 +00:00
commit fe72daee04

View file

@ -3886,10 +3886,10 @@ begin
Exit;
end;
Node := GetNodeAt(ClientPoint.X, ClientPoint.Y);
// Get the item over which there is something dragged.
AFile := GetNodeFile(Node);
Node := GetNodeAt(ClientPoint.X, ClientPoint.Y);
if Assigned(Node) then
AFile := GetNodeFile(Node);
if Assigned(AFile) and
(AFile.FSFile.IsDirectory or AFile.FSFile.IsLinkToDirectory) and
@ -3907,7 +3907,7 @@ begin
end;
function TColumnsDrawTree.OnExDrop(const FileNamesList: TStringList; DropEffect: TDropEffect;
ScreenPoint: TPoint):Boolean;
ScreenPoint: TPoint):Boolean;
var
Files: TFiles;
DropParams: TDropParams;