IDE: designer: check result of AddClicked

git-svn-id: trunk@45048 -
This commit is contained in:
mattias 2014-05-16 19:53:14 +00:00
parent af1b32c183
commit 43ebc91b4e

View File

@ -2191,8 +2191,8 @@ var
// find a parent for the new component
NewParent:=nil;
PropertyEditorHook.AddClicked(Self,MouseDownComponent,Button,Shift,
MouseUpPos.X,MouseUpPos.Y,NewComponentClass,NewParent);
if not PropertyEditorHook.AddClicked(Self,MouseDownComponent,Button,Shift,
MouseUpPos.X,MouseUpPos.Y,NewComponentClass,NewParent) then exit;
if Mediator<>nil then begin
// mediator, non LCL components
if NewParent=nil then