1afd8a53074660812f6a8e6ba74c81bbb265f884
larrym
  Mon Dec 19 14:22:52 2011 -0800
pass id to imgTrackAddMapItem (fixes #6370)
diff --git src/hg/hgTracks/chromGraphTrack.c src/hg/hgTracks/chromGraphTrack.c
index ad53145..8be34e8 100644
--- src/hg/hgTracks/chromGraphTrack.c
+++ src/hg/hgTracks/chromGraphTrack.c
@@ -177,31 +177,31 @@
     }
 
 /* Do map box */
 xOff = hvGfxAdjXW(hvg, xOff, width);
 
 char *encodedTrack = cgiEncode(tg->track);
 if(theImgBox && curImgTrack)
     {
     char link[512];     // FIXME: winStart/winEnd are not right when using a portal
     safef(link,sizeof(link),"%s&o=%d&t=%d&g=%s", hgcNameAndSettings(),
         winStart, winEnd, encodedTrack);
     #ifdef IMAGEv2_SHORT_MAPITEMS
         if(xOff < insideX && xOff+width > insideX)
             warn("cgDrawEither(%s) map item spanning slices. LX:%d TY:%d RX:%d BY:%d  link:[%s]",encodedTrack,xOff, yOff, xOff+width, yOff+height, link);
     #endif//def IMAGEv2_SHORT_MAPITEMS
-    imgTrackAddMapItem(curImgTrack,link,NULL,xOff,yOff,xOff+width,yOff+height, NULL);
+    imgTrackAddMapItem(curImgTrack,link,NULL,xOff,yOff,xOff+width,yOff+height,tg->track);
     }
 else
     {
     hPrintf("<AREA SHAPE=RECT COORDS=\"%d,%d,%d,%d\" ", xOff, yOff, xOff+width,
         yOff+height);
     hPrintf("HREF=\"%s&o=%d&t=%d&g=%s&c=%s&l=%d&r=%d&db=%s&pix=%d\">\n",
             hgcNameAndSettings(), winStart, winEnd, encodedTrack, chromName, winStart, winEnd,
             database, tl.picWidth);
     }
 }
 
 static void cgDrawItems(struct track *tg, int seqStart, int seqEnd,
         struct hvGfx *hvg, int xOff, int yOff, int width,
         MgFont *font, Color color, enum trackVisibility vis)
 /* Draw chromosome graph for built-in track. */