mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-12 03:56:12 +02:00
lcl: TImage: check Picture.Graphic existence before setting it Transparency
git-svn-id: trunk@16389 -
This commit is contained in:
parent
87854c957c
commit
67ef0cd399
@ -123,7 +123,7 @@ procedure TCustomImage.SetTransparent(Value : Boolean);
|
||||
begin
|
||||
if FTransparent=Value then exit;
|
||||
FTransparent := Value;
|
||||
if (FPicture.Graphic.Transparent <> FTransparent)
|
||||
if (FPicture.Graphic <> nil) and (FPicture.Graphic.Transparent <> FTransparent)
|
||||
then FPicture.Graphic.Transparent := FTransparent
|
||||
else PictureChanged(Self);
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user