remove excessive painting
authoramwaterhouse <Andrew Waterhouse>
Fri, 27 Apr 2007 16:21:01 +0000 (16:21 +0000)
committeramwaterhouse <Andrew Waterhouse>
Fri, 27 Apr 2007 16:21:01 +0000 (16:21 +0000)
src/jalview/gui/ScalePanel.java
src/jalview/gui/SeqPanel.java

index f71ff3a..3e91f21 100755 (executable)
@@ -174,7 +174,7 @@ public class ScalePanel
 \r
     }\r
 \r
-    ap.paintAlignment(true);\r
+    ap.paintAlignment(false);\r
   }\r
 \r
   /**\r
@@ -200,7 +200,7 @@ public class ScalePanel
 \r
     if (!stretchingGroup)\r
     {\r
-      ap.paintAlignment(true);\r
+      ap.paintAlignment(false);\r
 \r
       return;\r
     }\r
@@ -219,7 +219,7 @@ public class ScalePanel
       }\r
     }\r
     stretchingGroup = false;\r
-    ap.paintAlignment(true);\r
+    ap.paintAlignment(false);\r
   }\r
 \r
   /**\r
@@ -292,7 +292,7 @@ public class ScalePanel
         }\r
       }\r
 \r
-      ap.paintAlignment(true);\r
+      ap.paintAlignment(false);\r
     }\r
   }\r
 \r
index 6621c41..aaad2ae 100755 (executable)
@@ -205,7 +205,8 @@ public class SeqPanel
         }\r
 \r
         if (features[i].featureGroup != null\r
-            && seqCanvas.fr.featureGroups!=null\r
+           && seqCanvas.fr.featureGroups!=null\r
+            && seqCanvas.fr.featureGroups.containsKey(features[i].featureGroup)\r
             && !((Boolean)seqCanvas.fr.featureGroups.get(features[i].featureGroup)).booleanValue())\r
           continue;\r
 \r