BedShape is extracted to the separate structure

This commit is contained in:
YuSanka 2020-08-19 13:04:51 +02:00
parent 4641d44544
commit 15285a68a0
3 changed files with 190 additions and 12 deletions

View file

@ -732,16 +732,14 @@ static std::string get_pure_opt_key(std::string opt_key)
static wxString get_string_value(std::string opt_key, const DynamicPrintConfig& config)
{
int opt_idx = get_id_from_opt_key(opt_key);
opt_key = get_pure_opt_key(opt_key);
if (config.option(opt_key)->is_nil())
return _L("N/A");
int opt_idx = get_id_from_opt_key(opt_key);
wxString out;
// FIXME controll, if opt_key has index
const ConfigOptionDef* opt = config.def()->get(opt_key);
bool is_nullable = opt->nullable;