JAL-2439 Fixed opposite out-by-one problem in wrapped panels
authorkiramt <k.mourao@dundee.ac.uk>
Mon, 24 Apr 2017 10:18:26 +0000 (11:18 +0100)
committerkiramt <k.mourao@dundee.ac.uk>
Mon, 24 Apr 2017 10:18:26 +0000 (11:18 +0100)
src/jalview/appletgui/SeqCanvas.java
src/jalview/gui/SeqCanvas.java

index 0fd1e53..89df11f 100755 (executable)
@@ -501,7 +501,7 @@ public class SeqCanvas extends Panel
         g.setClip(0, 0, cWidth * avcharWidth, canvasHeight);
       }
 
-      drawPanel(g, startRes, endx, 0, al.getHeight(), ypos);
+      drawPanel(g, startRes, endx, 0, al.getHeight() - 1, ypos);
       g.setClip(null);
 
       if (av.isShowAnnotation())
index 19464ae..64e5fdc 100755 (executable)
@@ -588,7 +588,7 @@ public class SeqCanvas extends JComponent
                 (int) clip.getBounds().getHeight());
       }
 
-      drawPanel(g, startRes, endx, 0, al.getHeight(), ypos);
+      drawPanel(g, startRes, endx, 0, al.getHeight() - 1, ypos);
 
       if (av.isShowAnnotation())
       {