JAL-2001 drop isSelected(int) in favour of original ‘contains(int)’ method
[jalview.git] / src / jalview / renderer / AnnotationRenderer.java
index 007df3e..75099c2 100644 (file)
@@ -598,12 +598,9 @@ public class AnnotationRenderer
 
               if (columnSelection != null)
               {
-                for (int v : columnSelection.getSelected())
+                if (columnSelection.contains(column))
                 {
-                  if (v == column)
-                  {
-                    g.fillRect(x * charWidth, y, charWidth, charHeight);
-                  }
+                  g.fillRect(x * charWidth, y, charWidth, charHeight);
                 }
               }
             }