* Forced graphic to be transparent when TImage is transparent (fixes #10084)

git-svn-id: trunk@12683 -
This commit is contained in:
marc 2007-11-02 01:28:32 +00:00
parent 0be96a2869
commit 8702a324fd

View File

@ -148,10 +148,15 @@ end;
procedure TCustomImage.PictureChanged(Sender : TObject);
begin
if AutoSize and (Picture.Graphic <> nil)
if Picture.Graphic <> nil
then begin
InvalidatePreferredSize;
AdjustSize;
if AutoSize
then begin
InvalidatePreferredSize;
AdjustSize;
end;
if FTransparent
then Picture.Graphic.Transparent := True;
end;
Invalidate;
end;