9275ee8d88f2f0b40c9331a2c5139b13f617421d
kate
  Thu Oct 3 14:46:24 2019 -0700
Fixes to filter activated labeling. refs #23365

diff --git src/hg/hgTracks/hgTracks.c src/hg/hgTracks/hgTracks.c
index 8201dfa..9761696 100644
--- src/hg/hgTracks/hgTracks.c
+++ src/hg/hgTracks/hgTracks.c
@@ -10336,28 +10336,19 @@
 if (measureTiming)
     measureTime("Time at end of doMiddle, next up cart write");
 
 if (cartOptionalString(cart, "udcTimeout"))
     {
     warn("The Genome Browser cart currently includes the \"udcTimeout\" string. "
 	"While this is useful for debugging hubs, it may negatively impact "
 	"performance.   To clear this variable, click "
 	"<A HREF='hgTracks?hgsid=%s|url|&udcTimeout=[]'>here</A>.",cartSessionId(cart));
     }
 }
 
 void labelTrackAsFiltered(struct track *tg)
 /* add text to track long label to indicate filter is active */
 {
-#define FILTER_ACTIVATED " (filter activated)"
 char *oldLabel = tg->longLabel;
-tg->longLabel = catTwoStrings(oldLabel, FILTER_ACTIVATED);
-
-struct trackDb *tdbComposite = tdbGetComposite(tg->tdb);
-if (tdbComposite != NULL)
-    {
-    oldLabel = tdbComposite->longLabel;
-    if (!stringIn(FILTER_ACTIVATED, oldLabel))
-        tdbComposite->longLabel = catTwoStrings(oldLabel, FILTER_ACTIVATED);
-    }
+tg->longLabel = labelAsFiltered(oldLabel);
 }