Draw helices correctly
authoramwaterhouse <Andrew Waterhouse>
Tue, 30 Jan 2007 13:39:53 +0000 (13:39 +0000)
committeramwaterhouse <Andrew Waterhouse>
Tue, 30 Jan 2007 13:39:53 +0000 (13:39 +0000)
src/jalview/appletgui/AnnotationPanel.java
src/jalview/appletgui/SeqCanvas.java

index 01f2c23..10047fd 100755 (executable)
@@ -550,7 +550,7 @@ public class AnnotationPanel
                 else\r
                  {\r
                    g.fillRect(lastSSX, y + 4 + iconOffset,\r
-                              (x+1) * av.charWidth - lastSSX, 7);\r
+                              x * av.charWidth - lastSSX, 7);\r
                  }\r
                 break;\r
 \r
index 3af9fb9..f36cc6a 100755 (executable)
@@ -405,7 +405,7 @@ public class SeqCanvas
     int endx;\r
     int ypos = hgap;\r
 \r
-    int maxwidth = av.alignment.getWidth();\r
+    int maxwidth = av.alignment.getWidth()-1;\r
 \r
     if(av.hasHiddenColumns)\r
           maxwidth = av.getColumnSelection().findColumnPosition(maxwidth)-1;\r