src/hg/hgTracks/chromGraphTrack.c 1.18
1.18 2009/09/14 15:23:48 tdreszer
Use imgTrackAddMapItem in case map items need to be split between slices
Index: src/hg/hgTracks/chromGraphTrack.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/hgTracks/chromGraphTrack.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -b -B -U 4 -r1.17 -r1.18
--- src/hg/hgTracks/chromGraphTrack.c 27 Aug 2009 00:10:15 -0000 1.17
+++ src/hg/hgTracks/chromGraphTrack.c 14 Sep 2009 15:23:48 -0000 1.18
@@ -185,9 +185,14 @@
{
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);
- mapSetItemAdd(curMap,link,NULL,xOff,yOff,xOff+width,yOff+height);
+ #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);
+ //mapSetItemAdd(curMap,link,NULL,xOff,yOff,xOff+width,yOff+height);
}
else
#endif//def IMAGEv2_UI
{