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:
paul 2008-09-08 03:09:15 +00:00
parent cf010d10c6
commit 5f4857e470

View File

@ -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