Don't parse input id, leave it as it is
[jalview.git] / src / jalview / gui / SeqCanvas.java
index fcec1ac..42424d9 100755 (executable)
@@ -279,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
@@ -290,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
@@ -328,7 +329,7 @@ public class SeqCanvas extends JComponent
 \r
         if (pdbCanvas != null)\r
         {\r
-          pdbCanvas.updateSeqColours();\r
+         pdbCanvas.updateSeqColours();\r
         }\r
 \r
     }\r