From: jprocter Date: Fri, 28 Oct 2011 14:47:35 +0000 (+0100) Subject: (JAL-966) efficiency X-Git-Tag: Jalview_2_9~565^2~7 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=1fe3a6d899f14fb72ef4c353a75449def93136c8;p=jalview.git (JAL-966) efficiency --- diff --git a/src/jalview/gui/AnnotationPanel.java b/src/jalview/gui/AnnotationPanel.java index 20d4d29..2faba52 100755 --- a/src/jalview/gui/AnnotationPanel.java +++ b/src/jalview/gui/AnnotationPanel.java @@ -375,12 +375,13 @@ public class AnnotationPanel extends JPanel implements AwtRenderPanelI, { String collatedInput = ""; String last = ""; + ColumnSelection viscols=av.getColumnSelection(); // TODO: refactor and save av.getColumnSelection for efficiency for (int i = 0; i < columnSelection.size(); i++) { int index = columnSelection.columnAt(i); // always check for current display state - just in case - if (!av.getColumnSelection().isVisible(index)) + if (!viscols.isVisible(index)) continue; String tlabel = null; if (anot[index] != null)