FIX:fixed button not refreshing (page faults)
Change-Id: Id546112398dd2037fe839133bdd3669ed8281226
This commit is contained in:
parent
68545b2a81
commit
542aa02acd
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue