mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-17 02:22:17 +00:00
FIX:fixed display errors caused by dynamic thumbnails
jira:[STUDIO-10742] Change-Id: Ie429a98f79d770e80c07600b0da054feba0ce9bf (cherry picked from commit 519797ef19edf44d36e1d829ce0196f36cbdc3ef)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user