From c7a018d13ea307404b94afd92411de340d4bfa5f Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Fri, 8 Apr 2005 15:16:41 +0000 Subject: [PATCH] endREs -1 --- src/jalview/gui/AnnotationPanel.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/jalview/gui/AnnotationPanel.java b/src/jalview/gui/AnnotationPanel.java index 69af559..26f6084 100755 --- a/src/jalview/gui/AnnotationPanel.java +++ b/src/jalview/gui/AnnotationPanel.java @@ -330,7 +330,7 @@ public class AnnotationPanel extends JPanel implements MouseListener, MouseMotio return; } - imgWidth = (av.endRes-av.startRes+1) *av.charWidth; + imgWidth = (av.endRes-av.startRes) *av.charWidth; image = new BufferedImage(imgWidth, ap.annotationPanel.getHeight(), @@ -344,7 +344,7 @@ public class AnnotationPanel extends JPanel implements MouseListener, MouseMotio gg.setFont(av.getFont()); - drawComponent( gg, av.startRes, av.endRes+1); + drawComponent( gg, av.startRes, av.endRes); g.drawImage( image, 0, 0, this); } @@ -360,7 +360,7 @@ public class AnnotationPanel extends JPanel implements MouseListener, MouseMotio } gg.copyArea( 0,0, imgWidth, getHeight(), -horizontal*av.charWidth, 0 ); - int sr=av.startRes, er=av.endRes+1, transX=0; + int sr=av.startRes, er=av.endRes, transX=0; if(horizontal>0) // scrollbar pulled right, image to the left { -- 1.7.10.2