JAL-2439 Fix to hidden column marker being one row too short
authorkiramt <k.mourao@dundee.ac.uk>
Mon, 24 Apr 2017 09:51:39 +0000 (10:51 +0100)
committerkiramt <k.mourao@dundee.ac.uk>
Mon, 24 Apr 2017 09:51:39 +0000 (10:51 +0100)
src/jalview/appletgui/SeqCanvas.java
src/jalview/gui/SeqCanvas.java

index ed8a46d..0fd1e53 100755 (executable)
@@ -580,7 +580,7 @@ public class SeqCanvas extends Panel
             g1.setColor(Color.blue);
             g1.drawLine((blockEnd - blockStart + 1) * avcharWidth - 1,
                     0 + offset, (blockEnd - blockStart + 1) * avcharWidth
-                            - 1, (endSeq - startSeq) * avcharHeight
+                            - 1, (endSeq - startSeq + 1) * avcharHeight
                             + offset);
           }
 
index 4557819..19464ae 100755 (executable)
@@ -683,7 +683,7 @@ public class SeqCanvas extends JComponent
 
           g1.drawLine((blockEnd - blockStart + 1) * charWidth - 1,
                   0 + offset, (blockEnd - blockStart + 1) * charWidth - 1,
-                  (endSeq - startSeq) * charHeight + offset);
+                  (endSeq - startSeq + 1) * charHeight + offset);
         }
 
         g1.translate(-screenY * charWidth, 0);