0c216d6f2ce819a0910f6f2e5135318bfb898e31
tdreszer
  Tue Apr 22 15:15:10 2014 -0700
The doTrackMap look failed to calculate Y appropriately.  This should be fixed. Redmine #13087
diff --git src/hg/hgTracks/hgTracks.c src/hg/hgTracks/hgTracks.c
index fff3195..d74c04b 100644
--- src/hg/hgTracks/hgTracks.c
+++ src/hg/hgTracks/hgTracks.c
@@ -2609,31 +2609,32 @@
 
 /* Make map background. */
 y = yAfterRuler;
 for (flatTrack = flatTracks; flatTrack != NULL; flatTrack = flatTrack->next)
     {
     track = flatTrack->track;
     if (track->limitedVis != tvHide)
         {
         if (theImgBox)
             {
             // Set imgTrack in case any map items will be set
             sliceHeight      = trackPlusLabelHeight(track, fontHeight);
             sliceOffsetY     = y;
             curImgTrack = imgBoxTrackFind(theImgBox,track->tdb,NULL);
             }
-        y = doTrackMap(track, hvg, y, fontHeight, trackPastTabX, trackPastTabWidth);
+        doTrackMap(track, hvg, y, fontHeight, trackPastTabX, trackPastTabWidth);
+        y += trackPlusLabelHeight(track, fontHeight);
         }
     }
 
 /* Finish map. */
 hPrintf("</MAP>\n");
 
 // turn off inPlaceUpdate when rows in imgTbl can arbitrarily reappear and disappear (see redmine #7306 and #6944)
 jsonObjectAdd(jsonForClient, "inPlaceUpdate", newJsonBoolean(withLeftLabels && withCenterLabels));
 jsonObjectAdd(jsonForClient, "rulerClickHeight", newJsonNumber(rulerClickHeight));
 if(newWinWidth)
     {
     jsonObjectAdd(jsonForClient, "newWinWidth", newJsonNumber(newWinWidth));
     }
 
 /* Save out picture and tell html file about it. */