From 7837070d29c0f40a968f2460d82c95b2e4cbd108 Mon Sep 17 00:00:00 2001 From: Vojtech Bubnik Date: Fri, 3 Dec 2021 09:39:50 +0100 Subject: [PATCH] Follow-up to c6de3e84eb42969c78f4fdb64f7e413d43674f6b Fixed typos in option labels. --- src/libslic3r/PrintConfig.cpp | 4 ++-- src/slic3r/GUI/Tab.cpp | 8 +++----- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/src/libslic3r/PrintConfig.cpp b/src/libslic3r/PrintConfig.cpp index 9a4db03f6..011539aa4 100644 --- a/src/libslic3r/PrintConfig.cpp +++ b/src/libslic3r/PrintConfig.cpp @@ -3188,7 +3188,7 @@ void PrintConfigDef::init_sla_params() def = this->add("relative_correction_y", coFloat); def->label = L("Printer scaling correction in Y axis"); - def->full_label = L("Printer scaling X axis correction"); + def->full_label = L("Printer scaling Y axis correction"); def->tooltip = L("Printer scaling correction in Y axis"); def->min = 0; def->mode = comExpert; @@ -3196,7 +3196,7 @@ void PrintConfigDef::init_sla_params() def = this->add("relative_correction_z", coFloat); def->label = L("Printer scaling correction in Z axis"); - def->full_label = L("Printer scaling X axis correction"); + def->full_label = L("Printer scaling Z axis correction"); def->tooltip = L("Printer scaling correction in Z axis"); def->min = 0; def->mode = comExpert; diff --git a/src/slic3r/GUI/Tab.cpp b/src/slic3r/GUI/Tab.cpp index 518017db9..d5bb67a75 100644 --- a/src/slic3r/GUI/Tab.cpp +++ b/src/slic3r/GUI/Tab.cpp @@ -2493,8 +2493,7 @@ void TabPrinter::build_sla() optgroup = page->new_optgroup(L("Corrections")); line = Line{ m_config->def()->get("relative_correction")->full_label, "" }; - std::vector axes{ "X", "Y", "Z" }; - for (auto& axis : axes) { + for (auto& axis : { "X", "Y", "Z" }) { auto opt = optgroup->get_option(std::string("relative_correction_") + char(std::tolower(axis[0]))); opt.opt.label = axis; line.append_option(opt); @@ -2603,7 +2602,7 @@ PageShp TabPrinter::build_kinematics_page() optgroup->append_line(line); } - std::vector axes{ "x", "y", "z", "e" }; + const std::vector axes{ "x", "y", "z", "e" }; optgroup = page->new_optgroup(L("Maximum feedrates")); for (const std::string &axis : axes) { append_option_line(optgroup, "machine_max_feedrate_" + axis); @@ -4217,8 +4216,7 @@ void TabSLAMaterial::build() optgroup = page->new_optgroup(L("Corrections")); auto line = Line{ m_config->def()->get("material_correction")->full_label, "" }; - std::vector axes{ "X", "Y", "Z" }; - for (auto& axis : axes) { + for (auto& axis : { "X", "Y", "Z" }) { auto opt = optgroup->get_option(std::string("material_correction_") + char(std::tolower(axis[0]))); opt.opt.label = axis; line.append_option(opt);