mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-26 00:39:49 +02:00
fix Drag/Dock when there is no Dock Sites
git-svn-id: trunk@13582 -
This commit is contained in:
parent
7bad8ae57d
commit
ac274dc4c6
@ -369,6 +369,9 @@ procedure TDockPerformer.DragMove(APosition: TPoint);
|
||||
begin
|
||||
Result := nil;
|
||||
|
||||
if Manager.FDockSites = nil then
|
||||
Exit;
|
||||
|
||||
QualifyingSites := TList.Create;
|
||||
try
|
||||
for i := 0 to Manager.FDockSites.Count - 1 do
|
||||
@ -639,7 +642,7 @@ begin
|
||||
begin
|
||||
FInDragStop := True;
|
||||
try
|
||||
FPerformer.DragStop(ADropped);
|
||||
Self FPerformer.DragStop(ADropped);
|
||||
finally
|
||||
FreeAndNil(FPerformer);
|
||||
FInDragStop := False;
|
||||
|
Loading…
Reference in New Issue
Block a user