Changeset 14301


Ignore:
Timestamp:
02/01/13 13:57:36 (12 years ago)
Author:
Mathieu Morlighem
Message:

CHG: if exist is called, set used as true

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/classes/pairoptions.m

    r14176 r14301  
    162162
    163163                        %Recover option
    164                         bool=any(strcmpi(field,obj.list(:,1)));
     164                        pos=find(strcmpi(field,obj.list(:,1)));
     165                        if ~isempty(pos),
     166                                bool=true;
     167                                obj.list{pos,3}   = true;  %It is a default so user will not be notified if not used
     168                        else
     169                                bool=false;
     170                        end
    165171                end % }}}
    166172                function num = fieldoccurrences(obj,field), % {{{
Note: See TracChangeset for help on using the changeset viewer.