mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-04 19:00:27 +02:00
designer: don't lose component event handlers when copy component to the buffer (bug #0012505)
git-svn-id: trunk@18080 -
This commit is contained in:
parent
3657fbfe4f
commit
49277ad3f4
@ -626,10 +626,13 @@ begin
|
||||
|
||||
DestroyDriver:=false;
|
||||
Writer := CreateLRSWriter(BinCompStream,DestroyDriver);
|
||||
Try
|
||||
try
|
||||
{$IFNDEF DisableFakeMethods}
|
||||
Writer.OnWriteMethodProperty:=@BaseFormEditor1.WriteMethodPropertyEvent;
|
||||
{$ENDIF}
|
||||
Writer.Root:=FLookupRoot;
|
||||
Writer.WriteComponent(CurComponent);
|
||||
Finally
|
||||
finally
|
||||
if DestroyDriver then Writer.Driver.Free;
|
||||
Writer.Destroy;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user