mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-14 10:15:55 +08:00
Fix crash when switching printer profile
This commit is contained in:
parent
3160b00d5a
commit
76439c2ba7
@ -1140,7 +1140,7 @@ static wxString get_string_value(std::string opt_key, const DynamicPrintConfig&
|
|||||||
return _L("Undef");
|
return _L("Undef");
|
||||||
}
|
}
|
||||||
case coFloat:
|
case coFloat:
|
||||||
return double_to_string(config.opt_float(opt_key));
|
return double_to_string(config.option(opt_key)->getFloat());
|
||||||
case coFloats: {
|
case coFloats: {
|
||||||
if (is_nullable) {
|
if (is_nullable) {
|
||||||
auto values = config.opt<ConfigOptionFloatsNullable>(opt_key);
|
auto values = config.opt<ConfigOptionFloatsNullable>(opt_key);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user