Sort by added to preferences
[jalview.git] / src / jalview / gui / SeqCanvas.java
index 6c2c07b..b1b63b3 100755 (executable)
@@ -41,7 +41,6 @@ public class SeqCanvas extends JComponent
     int imgWidth;\r
     int imgHeight;\r
     AlignViewport av;\r
-    boolean showScores = false;\r
     boolean displaySearch = false;\r
     int[] searchResults = null;\r
     int chunkHeight;\r
@@ -425,6 +424,11 @@ public class SeqCanvas extends JComponent
                     cWidth * av.charWidth, (int) clip.getBounds().getHeight());\r
             }\r
 \r
+            if(av.alignment.getWidth() >= av.vconsensus.size())\r
+            {\r
+              endx = av.vconsensus.size()-2;\r
+            }\r
+\r
             drawPanel(g, startRes, endx, 0, al.getHeight(), startRes, 0, ypos);\r
             g.setClip(clip);\r
             g.translate(-LABEL_WEST, 0);\r