From 1fe3a6d899f14fb72ef4c353a75449def93136c8 Mon Sep 17 00:00:00 2001 From: jprocter Date: Fri, 28 Oct 2011 15:47:35 +0100 Subject: [PATCH 1/1] (JAL-966) efficiency --- src/jalview/gui/AnnotationPanel.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) -- 1.7.10.2