f7504e4db88de54c3a438f70a0acc4cddb41f148
kate
  Sat Jan 12 18:23:15 2019 -0800
Finish regeneron feature to display left labels instead of center labels in pack mode (setting centerLabelsPack off). refs #22739

diff --git src/hg/hgTracks/hgTracks.h src/hg/hgTracks/hgTracks.h
index 577e88f..b4caa12 100644
--- src/hg/hgTracks/hgTracks.h
+++ src/hg/hgTracks/hgTracks.h
@@ -1352,33 +1352,32 @@
 /* Special cases: inhibit center labels of subtracks in dense mode, and
  * of composite track in non-dense mode.
  * BUT if track->tdb has a centerLabelDense setting, let subtracks go with
  * the default and inhibit composite track center labels in all modes.
  * Otherwise use the global boolean withCenterLabels. */
 
 boolean isCenterLabelConditional(struct track *track);
 /* Dense subtracks and pack subtracks (when centerLabelsPack off set)
  *      show center labels depending on vis of previous track */
 
 boolean isCenterLabelConditionallySeen(struct track *track);
 /* Returns FALSE if track and prevTrack have same parent, and are both conditional
  * i.e. dense subtrack or pack subtrack with centerLabelsPack off set /
  */
 
-#define isCenterLabelIncluded(track) \
-                (isWithCenterLabels(track) && (theImgBox || isCenterLabelConditionallySeen(track)))
-// Center labels may be conditionally included
+boolean isCenterLabelIncluded(struct track *track);
+/* Center labels may be conditionally included */
 
 Color maybeDarkerLabels(struct track *track, struct hvGfx *hvg, Color color);
 /* For tracks having light track display but needing a darker label */
 
 void affyTxnPhase2Methods(struct track *track);
 /* Methods for dealing with a composite transcriptome tracks. */
 
 void loadGenePred(struct track *tg);
 /* Convert gene pred in window to linked feature. */
 
 void genePredAssignConfiguredName(struct track *tg);
 /* Set name on genePred in "extra" field to gene name, accession, or both,
  * depending, on UI on all items in track */
 
 void loadGenePredWithConfiguredName(struct track *tg);