FIX: crash for ironing spacing out of range

Jira: 7570

Signed-off-by: qing.zhang <qing.zhang@bambulab.com>
Change-Id: Ic2b07f7e1cb2534cbe356a294d450d05f8b31cbe
This commit is contained in:
qing.zhang 2024-07-09 14:24:02 +08:00 committed by Lane.Wei
parent e5cb4f0539
commit 379238772e

View File

@ -2226,17 +2226,17 @@ void PrintConfigDef::init_fff_params()
def = this->add("ironing_spacing", coFloat);
def->label = L("Ironing line spacing");
def->category = L("Quality");
def->tooltip = L("The distance between the lines of ironing. 0 means not apply.");
def->tooltip = L("The distance between the lines of ironing");
def->sidetext = L("mm");
def->min = 0;
def->max = 1;
def->mode = comAdvanced;
def->set_default_value(new ConfigOptionFloat(0));
def->set_default_value(new ConfigOptionFloat(0.1));
def = this->add("ironing_inset", coFloat);
def->label = L("Ironing inset");
def->category = L("Quality");
def->tooltip = L("The distance to keep the from the edges of ironing line");
def->tooltip = L("The distance to keep the from the edges of ironing line. 0 means not apply.");
def->sidetext = L("mm");
def->min = 0;
def->max = 100;