From 542aa02acde720ff73924448b27946ba69b49c73 Mon Sep 17 00:00:00 2001 From: tao wang Date: Wed, 9 Oct 2024 09:56:19 +0800 Subject: [PATCH] FIX:fixed button not refreshing (page faults) Change-Id: Id546112398dd2037fe839133bdd3669ed8281226 --- src/slic3r/GUI/Widgets/Button.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/slic3r/GUI/Widgets/Button.cpp b/src/slic3r/GUI/Widgets/Button.cpp index 8c9d6f7fe..ed956b509 100644 --- a/src/slic3r/GUI/Widgets/Button.cpp +++ b/src/slic3r/GUI/Widgets/Button.cpp @@ -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(); }