mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-20 12:19:31 +02:00
* Forced graphic to be transparent when TImage is transparent (fixes #10084)
git-svn-id: trunk@12683 -
This commit is contained in:
parent
0be96a2869
commit
8702a324fd
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user