* Dont initialize dragmanager in DragOver. Issue 21976

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2426 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
blikblum
2012-05-12 10:57:17 +00:00
parent 0c674ecb3a
commit 4d834d3fca

View File

@ -19825,7 +19825,7 @@ var
begin
//{$ifdef DEBUG_VTV}Logger.EnterMethod([lcDrag],'DragOver');{$endif}
if not VTVDragManager.DropTargetHelperSupported and (Source is TBaseVirtualTree) then
if Assigned(FDragManager) and not VTVDragManager.DropTargetHelperSupported and (Source is TBaseVirtualTree) then
begin
Tree := Source as TBaseVirtualTree;
ScrollOptions := [suoUpdateNCArea];