From 781db1b43fd358998a9ed0efe931619d1d365028 Mon Sep 17 00:00:00 2001 From: Augustin Cavalier Date: Mon, 24 Oct 2022 22:43:00 -0400 Subject: [PATCH] BAlert: Invalidate layout if the icon is unset. --- src/kits/interface/Alert.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kits/interface/Alert.cpp b/src/kits/interface/Alert.cpp index 204fce5b1b..4b56fafdb3 100644 --- a/src/kits/interface/Alert.cpp +++ b/src/kits/interface/Alert.cpp @@ -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