Don't parse input id, leave it as it is
[jalview.git] / src / jalview / gui / SeqCanvas.java
index 97b9f08..42424d9 100755 (executable)
@@ -48,8 +48,6 @@ public class SeqCanvas extends JComponent
     int LABEL_WEST;\r
     int LABEL_EAST;\r
 \r
-    boolean isOverview = false;\r
-\r
     /**\r
      * Creates a new SeqCanvas object.\r
      *\r
@@ -281,10 +279,13 @@ public class SeqCanvas extends JComponent
     // Set this to false to force a full panel paint\r
     public void paintComponent(Graphics g)\r
     {\r
+        super.paintComponent(g);\r
+\r
         sr.renderGaps(av.renderGaps);\r
 \r
-        if ((img != null) &&\r
-                (fastPaint && getVisibleRect() != g.getClipBounds()))\r
+        if ( img != null && (fastPaint\r
+             || (getVisibleRect().width != g.getClipBounds().width)\r
+             || (getVisibleRect().height != g.getClipBounds().height)))\r
         {\r
             g.drawImage(img, 0, 0, this);\r
             fastPaint = false;\r
@@ -292,8 +293,6 @@ public class SeqCanvas extends JComponent
         }\r
 \r
 \r
-\r
-\r
         // this draws the whole of the alignment\r
         imgWidth = getWidth();\r
         imgHeight = getHeight();\r
@@ -330,7 +329,7 @@ public class SeqCanvas extends JComponent
 \r
         if (pdbCanvas != null)\r
         {\r
-          pdbCanvas.updateSeqColours();\r
+         pdbCanvas.updateSeqColours();\r
         }\r
 \r
     }\r
@@ -639,7 +638,7 @@ public class SeqCanvas extends JComponent
             groupIndex = 0;\r
         }\r
 \r
-        if (group != null && !isOverview)\r
+        if (group != null)\r
         {\r
             do\r
             {\r