Index: src/hg/overlapSelect/selectTable.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/overlapSelect/selectTable.c,v
retrieving revision 1.31
retrieving revision 1.32
diff -b -B -U 4 -r1.31 -r1.32
--- src/hg/overlapSelect/selectTable.c	31 Jul 2009 18:09:24 -0000	1.31
+++ src/hg/overlapSelect/selectTable.c	25 Mar 2010 16:16:21 -0000	1.32
@@ -96,10 +96,9 @@
 if ((opts & selOppositeStrand) && (inCa->strand == selCa->strand))
     return FALSE;
 if ((opts & selExcludeSelf) && isSelfMatch(opts, inCa, selCa))
     return FALSE;
-if ((opts & selIdMatch) && (inCa->name != NULL) && (selCa->name != NULL)
-    && sameString(inCa->name, selCa->name))
+if ((opts & selIdMatch) && (inCa->name != NULL) && (selCa->name != NULL) && !sameString(inCa->name, selCa->name))
     return FALSE;
 return TRUE;
 }
 

