From 45ce9dae1ec917b16d753b664ff804c9f6f84f02 Mon Sep 17 00:00:00 2001 From: jprocter Date: Sun, 2 Sep 2012 23:59:05 +0100 Subject: [PATCH] JAL-812 only trigger alignment redraw and calculation update after all sequences are deleted --- src/jalview/appletgui/RedundancyPanel.java | 6 +++--- src/jalview/gui/RedundancyPanel.java | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/jalview/appletgui/RedundancyPanel.java b/src/jalview/appletgui/RedundancyPanel.java index b420758..03a9faf 100755 --- a/src/jalview/appletgui/RedundancyPanel.java +++ b/src/jalview/appletgui/RedundancyPanel.java @@ -197,7 +197,6 @@ public class RedundancyPanel extends SliderPanel implements Runnable, for (int i = 0; i < del.size(); i++) { alignment.deleteSequence(deleted[i]); - PaintRefresher.Refresh(this, ap.av.getSequenceSetId(), true, true); if (sg != null) { sg.deleteSequence(deleted[i], false); @@ -208,8 +207,9 @@ public class RedundancyPanel extends SliderPanel implements Runnable, ap.alignFrame.addHistoryItem(cut); - ap.av.firePropertyChange("alignment", null, ap.av.getAlignment() - .getSequences()); + PaintRefresher.Refresh(this, ap.av.getSequenceSetId(), true, true); +// ap.av.firePropertyChange("alignment", null, ap.av.getAlignment() +// .getSequences()); } } diff --git a/src/jalview/gui/RedundancyPanel.java b/src/jalview/gui/RedundancyPanel.java index f0a4f91..1b84d9f 100755 --- a/src/jalview/gui/RedundancyPanel.java +++ b/src/jalview/gui/RedundancyPanel.java @@ -234,7 +234,6 @@ public class RedundancyPanel extends GSliderPanel implements Runnable for (int i = 0; i < del.size(); i++) { ap.av.getAlignment().deleteSequence(deleted[i]); - PaintRefresher.Refresh(this, ap.av.getSequenceSetId(), true, true); if (sg != null) { sg.deleteSequence(deleted[i], false); @@ -245,8 +244,9 @@ public class RedundancyPanel extends GSliderPanel implements Runnable ap.alignFrame.addHistoryItem(cut); - ap.av.firePropertyChange("alignment", null, ap.av.getAlignment() - .getSequences()); + PaintRefresher.Refresh(this, ap.av.getSequenceSetId(), true, true); + //ap.av.firePropertyChange("alignment", null, ap.av.getAlignment() + // .getSequences()); } } -- 1.7.10.2