mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-12-28 02:10:30 -07:00
FIX:fixed button not refreshing (page faults)
Change-Id: Id546112398dd2037fe839133bdd3669ed8281226 (cherry picked from commit 542aa02acde720ff73924448b27946ba69b49c73)
This commit is contained in:
parent
7a197a3d8d
commit
38e6589bcb
1 changed files with 1 additions and 1 deletions
|
|
@ -80,7 +80,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…
Add table
Add a link
Reference in a new issue