Index: /issm/trunk/src/m/classes/@pairoptions/removefield.m
===================================================================
--- /issm/trunk/src/m/classes/@pairoptions/removefield.m	(revision 2557)
+++ /issm/trunk/src/m/classes/@pairoptions/removefield.m	(revision 2558)
@@ -12,5 +12,5 @@
 
 	%find where the field is located
-	lines=find(strcmpi(pairoptions.list(:,1),field));
+	lines=find(~strcmpi(pairoptions.list(:,1),field));
 
 	%remove duplicates from the options list
@@ -18,5 +18,5 @@
 
 	%warn user if requested
-	if warn & ~isempty(lines),
+	if warn
 		disp(['removefield info: option ' field ' has been removed from the list of options.'])
 	end
