Changeset 2708


Ignore:
Timestamp:
12/08/09 16:15:49 (15 years ago)
Author:
Mathieu Morlighem
Message:

better error message if option out of range

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/m/classes/@plotoptions/buildlist.m

    r2468 r2708  
    6565                        else
    6666                                %assign to subplot
     67                                if str2num(plotnum)>numberofplots,
     68                                        error(['plotoptions error message: ' field ' cannot be assigned (' plotnum ' exceed maximum number of plot)']);
     69                                end
    6770                                plotoptions.list{str2num(plotnum)}=addfield(plotoptions.list{str2num(plotnum)},field,rawoptions.list{i,2});
    6871                        end
Note: See TracChangeset for help on using the changeset viewer.