mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-17 10:49:09 +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
|
begin
|
||||||
if FTransparent=Value then exit;
|
if FTransparent=Value then exit;
|
||||||
FTransparent := Value;
|
FTransparent := Value;
|
||||||
if (FPicture.Graphic.Transparent <> FTransparent)
|
if (FPicture.Graphic <> nil) and (FPicture.Graphic.Transparent <> FTransparent)
|
||||||
then FPicture.Graphic.Transparent := FTransparent
|
then FPicture.Graphic.Transparent := FTransparent
|
||||||
else PictureChanged(Self);
|
else PictureChanged(Self);
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user