From 034ca8ef57d94aa50f52306c3ed9659f63c7bc0a Mon Sep 17 00:00:00 2001 From: YuSanka Date: Tue, 22 Dec 2020 16:23:53 +0100 Subject: [PATCH] Fixed a checking of the description lines existence before setting new value for them --- src/slic3r/GUI/Tab.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/slic3r/GUI/Tab.cpp b/src/slic3r/GUI/Tab.cpp index 2f95858a56..0656c7e0d5 100644 --- a/src/slic3r/GUI/Tab.cpp +++ b/src/slic3r/GUI/Tab.cpp @@ -2803,7 +2803,7 @@ void TabPrinter::toggle_options() toggle_option("retract_restart_extra_toolchange", have_multiple_extruders && toolchange_retraction, i); } - if (m_active_page->title() == "Machine limits") { + if (m_active_page->title() == "Machine limits" && m_machine_limits_description_line) { assert(m_config->option>("gcode_flavor")->value == gcfMarlin); const auto *machine_limits_usage = m_config->option>("machine_limits_usage"); bool enabled = machine_limits_usage->value != MachineLimitsUsage::Ignore; @@ -3269,7 +3269,7 @@ void Tab::clear_pages() void Tab::update_description_lines() { - if (m_active_page && m_active_page->title() == "Dependencies") + if (m_active_page && m_active_page->title() == "Dependencies" && m_parent_preset_description_line) update_preset_description_line(); }