* Fixed bug #9405, a wrong graphic type was forced

git-svn-id: trunk@11918 -
This commit is contained in:
marc 2007-09-02 15:46:26 +00:00
parent c2645e0867
commit 7bec7f1be6

View File

@ -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;