BAlert: Invalidate layout if the icon is unset.
This commit is contained in:
parent
70bf92576d
commit
781db1b43f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user