diff --git a/src/mcx_utils.c b/src/mcx_utils.c index 15cff032..0b20d56e 100644 --- a/src/mcx_utils.c +++ b/src/mcx_utils.c @@ -2772,7 +2772,7 @@ int mcx_loadjson(cJSON* root, Config* cfg) { } } - if (cfg->outputformat == ofJNifti) { + if (!flagset['F']) { cfg->outputformat = mcx_keylookup((char*)FIND_JSON_KEY("OutputFormat", "Session.OutputFormat", Session, "jnii", valuestring), outputformat); }