a540e869caa6e2ca8e7f4f6c460b9e62bdef1d5d angie Tue Jul 1 11:56:13 2014 -0700 Ugh, c73b60407 introduced a bug: I assumed that if tdb->parent is non-NULL,tdb->parentName would be too -- nope, tdb->parentName is apparently only for children of superTracks, not children of views/composites. refs #13477 diff --git src/hg/lib/hgFind.c src/hg/lib/hgFind.c index 639811b..4dd7d86 100644 --- src/hg/lib/hgFind.c +++ src/hg/lib/hgFind.c @@ -2470,39 +2470,39 @@ if (table->htmlOnePos) table->htmlOnePos(table, pos, f); else { char *matches = excludeTable ? "" : pos->browserName; char *encMatches = cgiEncode(matches); hgPosBrowserRange(pos, range); fprintf(f, "parentName) + if (tdb->parent) { if (tdbIsSuperTrackChild(tdb)) - fprintf(f, "%s=show&", tdb->parentName); + fprintf(f, "%s=show&", tdb->parent->track); else { // tdb is a subtrack of a composite or a view fprintf(f, "%s_sel=1&", trackName); - fprintf(f, "%s_sel=1&", tdb->parentName); + fprintf(f, "%s_sel=1&", tdb->parent->track); } } fprintf(f, "hgFind.matches=%s,\">", encMatches); htmTextOut(f, pos->name); fprintf(f, " at %s", range); desc = pos->description; if (desc) { fprintf(f, " - "); htmTextOut(f, desc); } fprintf(f, "\n"); freeMem(encMatches); } }