5999c3385b96ef26b00b63d38808099ad142538d
braney
  Tue Oct 8 14:33:07 2024 -0700
fix some problems with what happens after the 32K image is exceeded.

diff --git src/hg/hgTracks/hgTracks.c src/hg/hgTracks/hgTracks.c
index bd339bc..5e3358f 100644
--- src/hg/hgTracks/hgTracks.c
+++ src/hg/hgTracks/hgTracks.c
@@ -5215,31 +5215,32 @@
     if (track->limitedVis == tvHide)
 	{
 	continue;
 	}
 
     setFlatTrackMaxHeight(flatTrack, fontHeight);
 
     }
 
 
 // fill out track->prevTrack, and check for maxSafeHeight
 struct track *prevTrack = NULL;
 for (flatTrack = flatTracks,prevTrack=NULL; flatTrack != NULL; flatTrack = flatTrack->next)
     {
     track = flatTrack->track;
-    assert(track->limitedVis != tvHide);
+    if (track->limitedVis == tvHide)
+        continue;
     if (!isLimitedVisHiddenForAllWindows(track))
         {
 	struct track *winTrack;
 	for(winTrack=track;winTrack;winTrack=winTrack->nextWindow)
 	    { // TODO this is currently still only using one prev track value.
 	    winTrack->prevTrack = prevTrack; // Important for keeping track of conditional center labels!
 	    }
         // ORIG pixHeight += trackPlusLabelHeight(track, fontHeight);
 	if (!theImgBox) // prevTrack may have altered the height, so recalc height
 	    setFlatTrackMaxHeight(flatTrack, fontHeight);
         prevTrack = track;
         }
     }
 
 // allocate hvg png of pixWidth, pixHeight