diff --git a/doc/license.html b/doc/license.html index edbc87636..1f4d72055 100644 --- a/doc/license.html +++ b/doc/license.html @@ -5,7 +5,7 @@

THERE IS NO UNDO BUTTON!
SET UP A BACKUP OF YOUR DATABASE


-Version: 3.231031 (31-Oct-2023)
+Version: 3.231102 (02-Nov-2023)
COPYRIGHT © 2000-2023 USC & McGill University.
diff --git a/doc/version.txt b/doc/version.txt index 96a363505..456bf5cc5 100644 --- a/doc/version.txt +++ b/doc/version.txt @@ -1,2 +1,2 @@ % Brainstorm -% v. 3.231031 (31-Oct-2023) \ No newline at end of file +% v. 3.231102 (02-Nov-2023) \ No newline at end of file diff --git a/toolbox/gui/panel_surface.m b/toolbox/gui/panel_surface.m index 41bb43aeb..3c7662e63 100644 --- a/toolbox/gui/panel_surface.m +++ b/toolbox/gui/panel_surface.m @@ -2030,8 +2030,15 @@ function UpdateSurfaceColormap(hFig, iSurfaces) if strcmpi(DataType, 'Data') && ~isempty(ColormapInfo.Type) && ismember(ColormapInfo.Type, {'eeg', 'meg', 'nirs'}) DataType = upper(ColormapInfo.Type); % sLORETA: Do not use regular source scaling (pAm) - elseif strcmpi(DataType, 'Source') && ~isempty(strfind(lower(TessInfo(iTess).DataSource.FileName), 'sloreta')) - DataType = 'sLORETA'; + elseif strcmpi(DataType, 'Source') + if ~isempty(strfind(lower(TessInfo(iTess).DataSource.FileName), 'sloreta')) + DataType = 'sLORETA'; + else + sResultsMat = in_bst_results(TessInfo(iTess).DataSource.FileName, 0, 'Function'); + if ~isempty(strfind(lower(sResultsMat.Function), 'sloreta')) + DataType = 'sLORETA'; + end + end end end % === DISPLAY ON MRI ===