(JAL-966) efficiency
authorjprocter <jprocter@compbio.dundee.ac.uk>
Fri, 28 Oct 2011 14:47:35 +0000 (15:47 +0100)
committerjprocter <jprocter@compbio.dundee.ac.uk>
Fri, 28 Oct 2011 14:47:35 +0000 (15:47 +0100)
src/jalview/gui/AnnotationPanel.java

index 20d4d29..2faba52 100755 (executable)
@@ -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)