mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-18 10:09:32 +02:00
MG: fixed picture
git-svn-id: trunk@1493 -
This commit is contained in:
parent
e14d49fb6c
commit
219b96b901
@ -142,7 +142,7 @@ constructor TPicture.Create;
|
||||
begin
|
||||
inherited Create;
|
||||
GetFileFormats;
|
||||
GetClipboardFormats;
|
||||
//GetClipboardFormats;
|
||||
end;
|
||||
|
||||
destructor TPicture.Destroy;
|
||||
@ -266,11 +266,11 @@ begin
|
||||
end;
|
||||
|
||||
procedure TPicture.LoadFromClipboardFormat(FormatID: TClipboardFormat);
|
||||
var
|
||||
{var
|
||||
NewGraphic: TGraphic;
|
||||
GraphicClass: TGraphicClass;
|
||||
GraphicClass: TGraphicClass;}
|
||||
begin
|
||||
GraphicClass := ClipboardFormats.FindFormat(FormatID);
|
||||
{ GraphicClass := ClipboardFormats.FindFormat(FormatID);
|
||||
if GraphicClass = nil then
|
||||
InvalidGraphic(@SUnknownClipboardFormat);
|
||||
|
||||
@ -285,7 +285,7 @@ begin
|
||||
FGraphic.Free;
|
||||
FGraphic := NewGraphic;
|
||||
FGraphic.OnChange := Changed;
|
||||
Changed(Self);
|
||||
Changed(Self);}
|
||||
end;
|
||||
|
||||
procedure TPicture.SaveToClipboardFormat(FormatID: TClipboardFormat);
|
||||
|
Loading…
Reference in New Issue
Block a user