From 9603ccdf9190d748728b4fb2fdd14533ca4e1a38 Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Fri, 2 Jun 2017 14:12:21 +0100 Subject: [PATCH] JAL-2228 always create zero score annotations, since select/hide annotation filter ignores null positions in rows --- src/jalview/workers/ColumnCounterSetWorker.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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); } -- 1.7.10.2