2d300f6cbb380ce50be78fd764ae7db906ef77ce tdreszer Wed Sep 29 11:56:57 2010 -0700 subtracks without explicit (cart) vis but are selected, should get inherited vis diff --git src/hg/lib/hui.c src/hg/lib/hui.c index 1e7d3e5..7c21fae 100644 --- src/hg/lib/hui.c +++ src/hg/lib/hui.c @@ -6753,10 +6753,18 @@ if (cartVis != NULL) { vis = hTvFromString(cartVis); - if (tdbIsContainer(tdb)) + if (tdbIsContainerChild(tdb)) return vis; // subtrackVis override } } + +// subtracks without explicit (cart) vis but are selected, should get inherited vis +if (vis == tvHide && tdbIsContainerChild(tdb)) + { + if (fourStateVisible(subtrackFourStateChecked(tdb,cart))) + vis = tvFull; + } + if (vis == tvHide || tdb->parent == NULL) return vis;