64b2c5bd9ab0e2bd59360c39298ae54e97615407
kate
  Thu Sep 26 13:30:43 2019 -0700
Add UI control to hide empty subtracks. refs #23365

diff --git src/hg/hgTracks/simpleTracks.c src/hg/hgTracks/simpleTracks.c
index 37d7198..a953888 100644
--- src/hg/hgTracks/simpleTracks.c
+++ src/hg/hgTracks/simpleTracks.c
@@ -793,31 +793,31 @@
 		rows = packCountRowsOverflow(tg, floor(maxHeight/tg->lineHeight)+1, FALSE, FALSE, vis);
 	    }
 	else
 	    {
 	    rows = slCount(tg->items);
 	    }
 	break;
     case tvPack:
 	{
 	if(allowOverflow && itemCount < maxItemsToUseOverflow)
 	    rows = packCountRowsOverflow(tg, floor(maxHeight/tg->lineHeight), TRUE, allowOverflow, vis);
 	else
 	    rows = packCountRowsOverflow(tg, floor(maxHeight/tg->lineHeight)+1, TRUE, FALSE, vis);
         if (tdbIsCompositeChild(tg->tdb))
             {
-            boolean doHideEmpties = doHideEmptySubtracks(tg, NULL, NULL);
+            boolean doHideEmpties = compositeHideEmptySubtracks(cart, tg->tdb->parent, NULL, NULL);
             if (isCenterLabelsPackOff(tg) && !doHideEmpties)
                 if (rows == 0)
                     rows = 1;   // compact pack mode, shows just side label
             }
 	break;
 	}
     case tvSquish:
         {
 	tg->heightPer = heightPer/2;
 	if ((tg->heightPer & 1) == 0)
 	    tg->heightPer -= 1;
 	tg->lineHeight = tg->heightPer + 1;
 	if(allowOverflow && itemCount < maxItemsToUseOverflow)
 	    rows = packCountRowsOverflow(tg, floor(maxHeight/tg->lineHeight), FALSE, allowOverflow, vis);
 	else