5aff0be786f7ae7f9f9d97b9a3912ec51ce8a867
angie
  Fri Feb 3 15:07:58 2012 -0800
Track #29 (Shift rat to RGD gene set): fixed hole in hgFind.c logicthat caused IDs like "RGD:3136" to have single-base position ranges
in results.

diff --git src/hg/lib/hgFind.c src/hg/lib/hgFind.c
index 8f021af..9b2f0f6 100644
--- src/hg/lib/hgFind.c
+++ src/hg/lib/hgFind.c
@@ -3081,31 +3081,35 @@
 	if (start < 0)
 	    start = 0;
 	}
     singlePos(hgp, "Chromosome Range", NULL, "chromInfo", originalTerm,
 	      "", chrom, start, end);
     }
 else
     {
     struct hgFindSpec *shortList = NULL, *longList = NULL;
     struct hgFindSpec *hfs;
     boolean done = FALSE;
 
     // Disable singleBaseSpec for any term that is not hgOfficialChromName
     // because that mangles legitimate IDs that are [A-Z]:[0-9]+.
     if (singleBaseSpec)
+	{
+	singleBaseSpec = relativeFlag = FALSE;
 	term = sqlEscapeString(originalTerm);
+	relStart = relEnd = 0;
+	}
 
     hgFindSpecGetAllSpecs(db, &shortList, &longList);
     for (hfs = shortList;  hfs != NULL;  hfs = hfs->next)
 	{
 	if (hgFindUsingSpec(db, hfs, term, hgp, relativeFlag, relStart, relEnd,
 			    multiTerm))
 	    {
 	    done = TRUE;
 	    if (! hgFindSpecSetting(hfs, "semiShortCircuit"))
 		break;
 	    }
 	}
     if (! done)
 	{
 	for (hfs = longList;  hfs != NULL;  hfs = hfs->next)