mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-01 04:22:04 +08:00
Fix crash when switching printer profile
while having "support point density" overridden
This commit is contained in:
parent
9f21ffb8b4
commit
ae23ae4320
@ -1095,7 +1095,7 @@ static wxString get_string_value(std::string opt_key, const DynamicPrintConfig&
|
|||||||
|
|
||||||
switch (opt->type) {
|
switch (opt->type) {
|
||||||
case coInt:
|
case coInt:
|
||||||
return from_u8((boost::format("%1%") % config.opt_int(opt_key)).str());
|
return from_u8((boost::format("%1%") % config.option(opt_key)->getInt()).str());
|
||||||
case coInts: {
|
case coInts: {
|
||||||
if (is_nullable) {
|
if (is_nullable) {
|
||||||
auto values = config.opt<ConfigOptionIntsNullable>(opt_key);
|
auto values = config.opt<ConfigOptionIntsNullable>(opt_key);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user