From: Jim Procter Date: Fri, 2 Jun 2017 13:12:21 +0000 (+0100) Subject: JAL-2228 always create zero score annotations, since select/hide annotation filter... X-Git-Tag: Release_2_10_2~3^2~43^2 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=9603ccdf9190d748728b4fb2fdd14533ca4e1a38;p=jalview.git JAL-2228 always create zero score annotations, since select/hide annotation filter ignores null positions in rows --- diff --git a/src/jalview/workers/ColumnCounterSetWorker.java b/src/jalview/workers/ColumnCounterSetWorker.java index 8a1c8ec..b6b64fc 100644 --- a/src/jalview/workers/ColumnCounterSetWorker.java +++ b/src/jalview/workers/ColumnCounterSetWorker.java @@ -189,13 +189,11 @@ class ColumnCounterSetWorker extends AlignCalcWorker for (int i = 0; i < counts.length; i++) { int count = counts[i][anrow]; - if (count > 0) - { - Color color = ColorUtils.getGraduatedColour(count, 0, minColour, + + Color color = ColorUtils.getGraduatedColour(count, 0, minColour, max[anrow], maxColour); String str = String.valueOf(count); anns[i] = new Annotation(str, str, '0', count, color); - } rmax = Long.max(count, rmax); }