Index: src/hg/hgTracks/hgTracks.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/hgTracks/hgTracks.c,v
retrieving revision 1.1648
retrieving revision 1.1649
diff -b -B -U 4 -r1.1648 -r1.1649
--- src/hg/hgTracks/hgTracks.c	18 May 2010 19:01:16 -0000	1.1648
+++ src/hg/hgTracks/hgTracks.c	27 May 2010 21:13:24 -0000	1.1649
@@ -3185,9 +3185,8 @@
     encodePeakMethodsCt(tg);
     tg->nextItemButtonable = TRUE;
     tg->customPt = ct;
     }
-#ifdef USE_BAM
 else if (sameString(type, "bam"))
     {
     tg = trackFromTrackDb(tdb);
     tg->customPt = ct;
@@ -3200,9 +3199,8 @@
     hashAdd(tdb->settingsHash, INDEL_QUERY_INSERT, cloneString("on"));
     hashAdd(tdb->settingsHash, INDEL_POLY_A, cloneString("on"));
     hashAdd(tdb->settingsHash, "showDiffBasesMaxZoom", cloneString("100"));
     }
-#endif//def USE_BAM
 else if (sameString(type, "makeItems"))
     {
     tg = trackFromTrackDb(tdb);
     makeItemsMethods(tg);
@@ -4023,9 +4021,9 @@
 	    {
 	    cartSetString(cart, track->track, s);
 	    }
 	}
-    if (s != NULL)
+    if (s != NULL && !track->limitedVisSet)
 	track->visibility = hTvFromString(s);
     if (tdbIsComposite(track->tdb) && track->visibility != tvHide)
 	{
 	struct trackDb *parent = track->tdb->parent;

