Fixing some compiler warnings

This commit is contained in:
Vojtech Bubnik 2021-02-24 19:53:50 +01:00
parent 539e80e890
commit 6f5bf71f11
2 changed files with 2 additions and 2 deletions

View File

@ -513,7 +513,7 @@ public:
ConfigOptionFloat support_material_interface_spacing; ConfigOptionFloat support_material_interface_spacing;
ConfigOptionFloatOrPercent support_material_interface_speed; ConfigOptionFloatOrPercent support_material_interface_speed;
ConfigOptionEnum<SupportMaterialPattern> support_material_pattern; ConfigOptionEnum<SupportMaterialPattern> support_material_pattern;
ConfigOptionEnum<SupportMaterialPattern> support_material_interface_pattern; ConfigOptionEnum<SupportMaterialInterfacePattern> support_material_interface_pattern;
// Spacing between support material lines (the hatching distance). // Spacing between support material lines (the hatching distance).
ConfigOptionFloat support_material_spacing; ConfigOptionFloat support_material_spacing;
ConfigOptionFloat support_material_speed; ConfigOptionFloat support_material_speed;

View File

@ -3834,7 +3834,7 @@ bool Tab::validate_custom_gcodes()
{ {
bool valid = true; bool valid = true;
if ((m_type == Preset::TYPE_FILAMENT || if ((m_type == Preset::TYPE_FILAMENT ||
m_type == Preset::TYPE_PRINTER && static_cast<TabPrinter*>(this)->m_printer_technology == ptFFF) && (m_type == Preset::TYPE_PRINTER && static_cast<TabPrinter*>(this)->m_printer_technology == ptFFF)) &&
m_active_page->title() == "Custom G-code") { m_active_page->title() == "Custom G-code") {
for (auto opt_group : m_active_page->m_optgroups) { for (auto opt_group : m_active_page->m_optgroups) {
assert(opt_group->opt_map().size() == 1); assert(opt_group->opt_map().size() == 1);