Fixed typos in option labels.
This commit is contained in:
Vojtech Bubnik 2021-12-03 09:39:50 +01:00
parent def5bd6797
commit 7837070d29
2 changed files with 5 additions and 7 deletions

View File

@ -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;

View File

@ -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<std::string> 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<std::string> axes{ "x", "y", "z", "e" };
const std::vector<std::string> 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<std::string> 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);