e7a5e4344d16066dbde3cb8ab400f0b1c6a55028
braney
  Wed Jul 19 13:21:28 2023 -0700
fix a problem with sequence logos where zero height letters were getting
drawn incorrectly

diff --git src/hg/hgTracks/wigTrack.c src/hg/hgTracks/wigTrack.c
index f19cb0e..5d9ba3a 100644
--- src/hg/hgTracks/wigTrack.c
+++ src/hg/hgTracks/wigTrack.c
@@ -1393,32 +1393,31 @@
                     {
                     if (base == 'a')
                         color = MG_RED;
                     else if (base == 't')
                         color = MG_GREEN;
                     else if (base == 'c')
                         color = MG_BROWN;
                     else if (base == 'g')
                         color = MG_BLUE;
                     }
 
                 char string[2];
                 string[0] = toupper(base);
                 string[1] = 0;
                 MgFont *font = tl.font;
-                int height = dataValue * scaleFactor;
-                if (height != 0)
+                if (boxHeight != 0)
                     {
                     if (baseProbs)
                         {
                         int thisHeight;
 
                         // we want a sorted list so the most probable gets drawn on top
                         probVals[0].prob = baseProbs[baseNum].aProb;
                         probVals[1].prob = baseProbs[baseNum].cProb;
                         probVals[2].prob = baseProbs[baseNum].gProb;
                         probVals[3].prob = baseProbs[baseNum].tProb;
                         slSort(&probList,probListCmp);
 
                         int y = yOff+boxTop;
                         struct probVal *pl = probList;
                         for(; pl; pl = pl->next)