110a67256f2038b6216c448e86967dc763efc8c8 braney Sun Jan 26 12:57:24 2025 -0800 properly deal with tvShow when ranking visibilities refs #35137 diff --git src/hg/lib/hui.c src/hg/lib/hui.c index 38479268a06..5d1c4bbeae8 100644 --- src/hg/lib/hui.c +++ src/hg/lib/hui.c @@ -9636,31 +9636,32 @@ struct trackDb *cTdb = childRef->val; cTdb->visibility = hTvFromString(cartUsualString(cart, cTdb->track, hStringFromTv(cTdb->visibility))); if (cTdb->visibility != tvHide) visibleChild = 1; } } hideShowDropDownWithClassAndExtra(tdb->track, NULL, show, (show && visibleChild) ? "normalText visDD" : "hiddenText visDD", events); return TRUE; } int tvConvertToNumericOrder(enum trackVisibility v) { -return ((v) == tvFull ? 4 : \ +return ((v) == tvShow ? 5 : \ + (v) == tvFull ? 4 : \ (v) == tvPack ? 3 : \ (v) == tvSquish ? 2 : \ (v) == tvDense ? 1 : 0); } int tvCompare(enum trackVisibility a, enum trackVisibility b) /* enum trackVis isn't in numeric order by visibility, so compare * symbolically: */ { return (tvConvertToNumericOrder(b) - tvConvertToNumericOrder(a)); } enum trackVisibility tvMin(enum trackVisibility a, enum trackVisibility b) /* Return the less visible of a and b. */ {