mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-16 09:39:09 +02:00
* Fixed bug #9405, a wrong graphic type was forced
git-svn-id: trunk@11918 -
This commit is contained in:
parent
c2645e0867
commit
7bec7f1be6
@ -389,13 +389,13 @@ end;
|
||||
|
||||
function TPicture.GetPNG: TPortableNetworkGraphic;
|
||||
begin
|
||||
ForceType(TPixmap);
|
||||
ForceType(TPortableNetworkGraphic);
|
||||
Result := TPortableNetworkGraphic(Graphic);
|
||||
end;
|
||||
|
||||
function TPicture.GetPNM: TPortableAnyMapGraphic;
|
||||
begin
|
||||
ForceType(TPixmap);
|
||||
ForceType(TPortableAnyMapGraphic);
|
||||
Result := TPortableAnyMapGraphic(Graphic);
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user