From a51855089ac974c215bae1c47b713eccfe6a5900 Mon Sep 17 00:00:00 2001 From: Helge <47348963+HJZollner@users.noreply.github.com> Date: Thu, 26 Oct 2023 08:12:40 -0400 Subject: [PATCH] [BUG FIX] - Unknown field img in HTMLReport - OspreyHTMLReport Added an additional check to ensure the img field exists. --- plot/OspreyHTMLReport.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plot/OspreyHTMLReport.m b/plot/OspreyHTMLReport.m index a313f301..ffc5dd71 100644 --- a/plot/OspreyHTMLReport.m +++ b/plot/OspreyHTMLReport.m @@ -911,7 +911,7 @@ close(out); close(temp); - if isfield(MRSCont.seg.img, 'vol_Tha_CoM') % HBCD thalamus overlap + if isfield(MRSCont.seg,'img') && isfield(MRSCont.seg.img, 'vol_Tha_CoM') % HBCD thalamus overlap out = figure('Visible','off'); imagesc(MRSCont.seg.img.vol_Tha_CoM{kk}); axis equal;