src/hg/hgTracks/imageV2.c 1.3
1.3 2009/06/29 18:15:03 tdreszer
imageV2 should now work with reverse.
Index: src/hg/hgTracks/imageV2.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/hgTracks/imageV2.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -b -B -U 4 -r1.2 -r1.3
--- src/hg/hgTracks/imageV2.c 27 Jun 2009 20:12:27 -0000 1.2
+++ src/hg/hgTracks/imageV2.c 29 Jun 2009 18:15:03 -0000 1.3
@@ -172,11 +172,11 @@
boolean mapItemConsistentWithImage(struct mapItem *item,struct image *img,boolean verbose)
/* Test whether a map item is consistent with the image it is supposed to be for */
{
if ((item->topLeftX < 0 || item->topLeftX >= img->width)
-|| (item->bottomRightX < 0 || item->bottomRightX > img->width || item->bottomRightX <= item->topLeftX)
+|| (item->bottomRightX < 0 || item->bottomRightX > img->width || item->bottomRightX < item->topLeftX)
|| (item->topLeftY < 0 || item->topLeftY >= img->height)
-|| (item->bottomRightY < 0 || item->bottomRightY > img->height || item->bottomRightY <= item->topLeftY))
+|| (item->bottomRightY < 0 || item->bottomRightY > img->height || item->bottomRightY < item->topLeftY))
{
if (verbose)
warn("mapItem has coordinates (topX:%d topY:%d botX:%d botY:%d) outside of image (width:%d height:%d)",
item->topLeftX,item->topLeftY,item->bottomRightX,item->bottomRightY,img->width,img->height);
@@ -1062,9 +1062,10 @@
// rightLabel
if(imgBox->showSideLabel && !imgTrack->plusStrand)
{
safef(name, sizeof(name), "right_%s", trackName);
- hPrintf("<TD id='td_%s'>\n", name);
+ hPrintf("<TD id='td_%s'%s>\n", name,
+ (imgTrack->reorderable?" class='dragHandle' title='Drag to reorder'":""));
sliceAndMapDraw(imgTrackSliceGetByType(imgTrack,isSide), name);
hPrintf("</TD>");
}
hPrintf("</TR>");