From 6a951ef313becea88861eb3f48c244be82da1ca0 Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Mon, 4 Apr 2016 15:23:52 +0100 Subject: [PATCH] JAL-2001 use fast column selection test --- src/jalview/renderer/AnnotationRenderer.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/jalview/renderer/AnnotationRenderer.java b/src/jalview/renderer/AnnotationRenderer.java index 007df3e..2d84289 100644 --- a/src/jalview/renderer/AnnotationRenderer.java +++ b/src/jalview/renderer/AnnotationRenderer.java @@ -598,12 +598,9 @@ public class AnnotationRenderer if (columnSelection != null) { - for (int v : columnSelection.getSelected()) + if (columnSelection.isSelected(column)) { - if (v == column) - { - g.fillRect(x * charWidth, y, charWidth, charHeight); - } + g.fillRect(x * charWidth, y, charWidth, charHeight); } } } -- 1.7.10.2