mirror of
https://git.mirrors.martin98.com/https://github.com/bambulab/BambuStudio.git
synced 2025-09-28 09:23:15 +08:00
FIX: Reset to the previous valid value when the input value is invalid
jira: STUDIO-11968 Change-Id: I9fc92c71cdb8737d72306952252623ad3bd59989
This commit is contained in:
parent
6680fdffe4
commit
d62341f7ee
@ -443,7 +443,7 @@ coordf_t LayerRangeEditor::get_value()
|
||||
else {
|
||||
if (!str.ToDouble(&layer_height) || layer_height < 0.0f) {
|
||||
show_error(m_parent, _L("Invalid numeric."));
|
||||
SetValue(double_to_string(layer_height));
|
||||
SetValue(m_valid_value); // reset to a valid value
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user