Changeset 2558


Ignore:
Timestamp:
10/29/09 07:52:00 (15 years ago)
Author:
Mathieu Morlighem
Message:

bugfix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/m/classes/@pairoptions/removefield.m

    r2439 r2558  
    1212
    1313        %find where the field is located
    14         lines=find(strcmpi(pairoptions.list(:,1),field));
     14        lines=find(~strcmpi(pairoptions.list(:,1),field));
    1515
    1616        %remove duplicates from the options list
     
    1818
    1919        %warn user if requested
    20         if warn & ~isempty(lines),
     20        if warn
    2121                disp(['removefield info: option ' field ' has been removed from the list of options.'])
    2222        end
Note: See TracChangeset for help on using the changeset viewer.