8cc4e434ab269fdb1dd228a1bba8eb1007cd32bc hiram Tue Jan 14 14:23:55 2014 -0800 eliminate a useless self to self assignment statement refs #12209 diff --git src/hg/hgTracks/cytoBandTrack.c src/hg/hgTracks/cytoBandTrack.c index f01bfcf..9b8f2fc 100644 --- src/hg/hgTracks/cytoBandTrack.c +++ src/hg/hgTracks/cytoBandTrack.c @@ -117,31 +117,30 @@ double scale = 0; int xBorder = 4; int lineHeight = 0; int heightPer = 0; int x1, x2; int yBorder = 0; int chromSize = hChromSize(database, chromName); struct cytoBand *cbList = NULL, *cb = NULL; scale = (double) (width - (2 * xBorder)) / chromSize; /* Subtrack 10 for the 5 pixels buffer on either side. */ tg->heightPer -= 11; tg->lineHeight -= 11; lineHeight = tg->lineHeight; heightPer = tg->heightPer; -yOff = yOff; /* Time to draw the bands. */ hvGfxSetClip(hvg, xOff, yOff, width, tg->height); genericDrawItems(tg, 0, chromSize, hvg, xOff+xBorder, yOff+5, width-(2*xBorder), font, color, tvDense); x1 = round((winStart)*scale) + xOff + xBorder -1; x2 = round((winEnd)*scale) + xOff + xBorder -1; if(x1 >= x2) x2 = x1+1; yBorder = tg->heightPer + 7 + 1; /* Draw an outline around chromosome for visualization purposes. Helps to make the chromosome look better. */ hvGfxLine(hvg, xOff+xBorder, yOff+4, xOff+width-xBorder, yOff+4, MG_BLACK);