mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-27 22:09:29 +02:00
IDE: paste one component
git-svn-id: trunk@37639 -
This commit is contained in:
parent
22957ca052
commit
082541ea2d
@ -14709,6 +14709,7 @@ var
|
||||
NewClassName: String;
|
||||
ARegComp: TRegisteredComponent;
|
||||
BinCompStream: TMemoryStream;
|
||||
c: Char;
|
||||
begin
|
||||
DebugLn('TMainIDE.OnDesignerPasteComponent A');
|
||||
|
||||
@ -14739,6 +14740,9 @@ begin
|
||||
try
|
||||
try
|
||||
LRSObjectTextToBinary(TxtCompStream,BinCompStream);
|
||||
// always append an "object list end"
|
||||
c:=#0;
|
||||
BinCompStream.Write(c,1);
|
||||
except
|
||||
on E: Exception do begin
|
||||
IDEMessageDialog(lisConversionError,
|
||||
|
Loading…
Reference in New Issue
Block a user