From: Jim Procter Date: Mon, 4 Apr 2016 14:23:52 +0000 (+0100) Subject: JAL-2001 use fast column selection test X-Git-Tag: Release_2_10_0~270^2^2~6 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=6a951ef313becea88861eb3f48c244be82da1ca0;p=jalview.git JAL-2001 use fast column selection test --- 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); } } }