Skip to content
Snippets Groups Projects
Commit b02e7a74 authored by Dóra Kocsis's avatar Dóra Kocsis
Browse files

fix bug in mapping nested options in set_command_option

In case of nested options (eg: estimation.moments_posterior_density.indicator) the syntax: options_.(gui_auxiliary.command_option_mapping(name)) failed to populate the options_ field.
parent 09bd6e85
Branches
Tags
1 merge request!15Master
...@@ -115,7 +115,12 @@ try ...@@ -115,7 +115,12 @@ try
end end
otherwise otherwise
options_.(gui_auxiliary.command_option_mapping(name)) = value; if isnumeric(value)
eval(['options_.' gui_auxiliary.command_option_mapping(name) '=' num2str(value) ';']);
else
eval_expr = sprintf("options_.%s='%s';", gui_auxiliary.command_option_mapping(name), value);
eval(eval_expr);
end
end end
catch catch
status = 0; status = 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment