From 7e754989dc49f2d51e40f9b4e37831f90194a7a5 Mon Sep 17 00:00:00 2001 From: Qianqian Fang Date: Fri, 29 Sep 2023 19:09:34 -0400 Subject: [PATCH] fix outputformat parsing bug --- src/mcx_utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }