FIX:fixed button not refreshing (page faults)

Change-Id: Id546112398dd2037fe839133bdd3669ed8281226
This commit is contained in:
tao wang 2024-10-09 09:56:19 +08:00 committed by Lane.Wei
parent 68545b2a81
commit 542aa02acd
1 changed files with 1 additions and 1 deletions

View File

@ -79,7 +79,7 @@ void Button::SetIcon(const wxString& icon)
auto tmpBitmap = ScalableBitmap(this, icon.ToStdString(), this->active_icon.px_cnt());
if (!icon.IsEmpty()) {
//BBS set button icon default size to 20
if (!tmpBitmap.bmp().IsSameAs(tmpBitmap.bmp())) {
if (!tmpBitmap.bmp().IsSameAs(this->active_icon.bmp())) {
this->active_icon = tmpBitmap;
Refresh();
}