FIX:fixed display errors caused by dynamic thumbnails

jira:[STUDIO-10742]

Change-Id: Ie429a98f79d770e80c07600b0da054feba0ce9bf
(cherry picked from commit 519797ef19edf44d36e1d829ce0196f36cbdc3ef)
This commit is contained in:
tao wang
2025-03-06 23:17:18 +08:00
committed by Noisyfox
parent 965b5b31cc
commit 3cc91d347f
2 changed files with 8 additions and 4 deletions

View File

@@ -900,8 +900,10 @@ void AmsMapingPopup::update(MachineObject* obj, const std::vector<FilamentInfo>&
update_title(obj);
/*ext*/
const auto& full_config = wxGetApp().preset_bundle->full_config();
size_t nozzle_nums = full_config.option<ConfigOptionFloats>("nozzle_diameter")->values.size();
//const auto& full_config = wxGetApp().preset_bundle->full_config();
//size_t nozzle_nums = full_config.option<ConfigOptionFloats>("nozzle_diameter")->values.size();
size_t nozzle_nums = obj->m_extder_data.total_extder_count;
if (nozzle_nums == 1) {
m_left_marea_panel->Hide();
@@ -1293,7 +1295,7 @@ void MappingItem::paintEvent(wxPaintEvent &evt)
void MappingItem::render(wxDC &dc)
{
wxSize size = GetSize();
#ifdef __WXMSW__
wxMemoryDC memdc;
wxBitmap bmp(size.x, size.y);