Fix crash when switching printer profile

while having "support point density" overridden
This commit is contained in:
tamasmeszaros 2024-01-17 17:05:20 +01:00 committed by YuSanka
parent 9f21ffb8b4
commit ae23ae4320

View File

@ -1095,7 +1095,7 @@ static wxString get_string_value(std::string opt_key, const DynamicPrintConfig&
switch (opt->type) {
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: {
if (is_nullable) {
auto values = config.opt<ConfigOptionIntsNullable>(opt_key);