BAlert: Invalidate layout if the icon is unset.

This commit is contained in:
Augustin Cavalier 2022-10-24 22:43:00 -04:00
parent 70bf92576d
commit 781db1b43f

View File

@ -750,7 +750,7 @@ TAlertView::SetBitmap(BBitmap* icon)
BBitmap* oldBitmap = fIconBitmap;
fIconBitmap = icon;
if (oldBitmap == NULL
if (oldBitmap == NULL || (oldBitmap != NULL && icon == NULL)
|| (icon != NULL && oldBitmap->Bounds() != icon->Bounds())) {
InvalidateLayout();
} else