mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-25 17:29:07 +02:00
gtk: don't request bitmap handle to check whether it empty - use Empty property instead
git-svn-id: trunk@16477 -
This commit is contained in:
parent
cf010d10c6
commit
5f4857e470
@ -295,9 +295,7 @@ begin
|
||||
if (AIndex <> -1) and (AValue.Images <> nil) then
|
||||
AValue.Images.GetBitmap(AIndex, AGlyph, AEffect);
|
||||
// check if an image is needed
|
||||
if (AGlyph.Handle = 0)
|
||||
or (AGlyph.Width = 0)
|
||||
or (AGlyph.Height = 0)
|
||||
if AGlyph.Empty
|
||||
then begin
|
||||
if BitBtnInfo^.ImageWidget <> nil
|
||||
then begin
|
||||
|
Loading…
Reference in New Issue
Block a user