Changeset 97 for aedes.m


Ignore:
Timestamp:
Oct 21, 2009, 12:15:05 PM (9 years ago)
Author:
tjniskan
Message:
  • Fixed a small bug in overlay handling.
  • When loading a ROI from NIfTI file, the file name is now used as the

ROI label.

M aedes.m
M aedes_revision.m

File:
1 edited

Legend:

Unmodified
Added
Removed
  • aedes.m

    r96 r97  
    45384538 
    45394539  % Delete overlay control window
    4540   if isfield(H,'OVERLAY_CONTROL_FIG') && ishandle(H.OVERLAY_CONTROL_FIG)
     4540  if isfield(H,'OVERLAY_CONTROL_FIG') && ~isempty(H.OVERLAY_CONTROL_FIG) && ishandle(H.OVERLAY_CONTROL_FIG)
    45414541    delete(H.OVERLAY_CONTROL_FIG)
    45424542  end
     
    84988498            tmp.ROI.fpath{1} = [fp,filesep];
    84998499            tmp.ROI.fname{1} = f_name;
    8500             tmp.ROI.label = 'NIfTI ROI';
     8500            if ~isempty(fn)
     8501              tmp.ROI.label = fn;
     8502            else
     8503              tmp.ROI.label = 'NIfTI ROI';
     8504            end
    85018505            tmp.ROI.color = [255 0 0];
    85028506            %tmp.FileInfo.DataFileName{1} = '';
Note: See TracChangeset for help on using the changeset viewer.

Powered by Trac 1.0.9.Copyright © Juha-Pekka Niskanen 2008