From 9f5c441eab11a7bfedbe8b23735519e43369d9dd Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Fri, 27 Apr 2007 16:21:01 +0000 Subject: [PATCH] remove excessive painting --- src/jalview/gui/ScalePanel.java | 8 ++++---- src/jalview/gui/SeqPanel.java | 3 ++- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/jalview/gui/ScalePanel.java b/src/jalview/gui/ScalePanel.java index f71ff3a..3e91f21 100755 --- a/src/jalview/gui/ScalePanel.java +++ b/src/jalview/gui/ScalePanel.java @@ -174,7 +174,7 @@ public class ScalePanel } - ap.paintAlignment(true); + ap.paintAlignment(false); } /** @@ -200,7 +200,7 @@ public class ScalePanel if (!stretchingGroup) { - ap.paintAlignment(true); + ap.paintAlignment(false); return; } @@ -219,7 +219,7 @@ public class ScalePanel } } stretchingGroup = false; - ap.paintAlignment(true); + ap.paintAlignment(false); } /** @@ -292,7 +292,7 @@ public class ScalePanel } } - ap.paintAlignment(true); + ap.paintAlignment(false); } } diff --git a/src/jalview/gui/SeqPanel.java b/src/jalview/gui/SeqPanel.java index 6621c41..aaad2ae 100755 --- a/src/jalview/gui/SeqPanel.java +++ b/src/jalview/gui/SeqPanel.java @@ -205,7 +205,8 @@ public class SeqPanel } if (features[i].featureGroup != null - && seqCanvas.fr.featureGroups!=null + && seqCanvas.fr.featureGroups!=null + && seqCanvas.fr.featureGroups.containsKey(features[i].featureGroup) && !((Boolean)seqCanvas.fr.featureGroups.get(features[i].featureGroup)).booleanValue()) continue; -- 1.7.10.2