From: Mark G. <mg...@us...> - 2003-06-26 20:01:06
|
Update of /cvsroot/gmod/apollo/src/java/apollo/gui/genomemap In directory sc8-pr-cvs1:/tmp/cvs-serv13064/src/java/apollo/gui/genomemap Modified Files: FastClippingGraphics.java Log Message: Fixed bug in FastClippingGraphics.drawChars chagning < to <= on bounds check. This was causing the last base pair of the genomic in ScaleView to not get drawn. Index: FastClippingGraphics.java =================================================================== RCS file: /cvsroot/gmod/apollo/src/java/apollo/gui/genomemap/FastClippingGraphics.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** FastClippingGraphics.java 11 Nov 2002 12:02:48 -0000 1.3 --- FastClippingGraphics.java 26 Jun 2003 20:01:03 -0000 1.4 *************** *** 62,66 **** int x, int y) { //System.out.println("Drawing "+ data + " " + offset + " " + length + " " + x + " " + y); ! if ((length+offset) < data.length) { g.drawChars(data,offset,length,x,y); } --- 62,66 ---- int x, int y) { //System.out.println("Drawing "+ data + " " + offset + " " + length + " " + x + " " + y); ! if ((length+offset) <= data.length) { g.drawChars(data,offset,length,x,y); } |