Put clip back in
authoramwaterhouse <Andrew Waterhouse>
Wed, 28 Sep 2005 15:07:04 +0000 (15:07 +0000)
committeramwaterhouse <Andrew Waterhouse>
Wed, 28 Sep 2005 15:07:04 +0000 (15:07 +0000)
src/jalview/appletgui/SeqCanvas.java

index 46ddf37..1de9418 100755 (executable)
@@ -359,7 +359,12 @@ public class SeqCanvas
         }\r
 \r
 \r
+        if(g.getClip()==null)\r
+          g.setClip(0, 0, cWidth * av.charWidth, canvasHeight);\r
+\r
         drawPanel(g, startRes, endx, 0, al.getHeight(), startRes, 0, ypos);\r
+         g.setClip(null);\r
+\r
 \r
         if(av.showAnnotation)\r
         {\r