From a4fb68eb7d62e52ac29858fb65a8fa3eda708d6f Mon Sep 17 00:00:00 2001 From: Renia Correya Date: Fri, 7 Jun 2024 15:16:09 +0100 Subject: [PATCH] JAL-4426 Defect fix to display number of sequences only for bar graph annotations --- src/jalview/gui/AnnotationLabels.java | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/src/jalview/gui/AnnotationLabels.java b/src/jalview/gui/AnnotationLabels.java index 1ee7cba..35ffbf3 100755 --- a/src/jalview/gui/AnnotationLabels.java +++ b/src/jalview/gui/AnnotationLabels.java @@ -886,16 +886,15 @@ public class AnnotationLabels extends JPanel if (aa.graphGroup == -1) { msg.append(aa.label); + if(aa.getNoOfSequencesIncluded()>=0) + { + msg.append(" ("); + msg.append(MessageManager.getString("label.sequence_count")); + msg.append(aa.getNoOfSequencesIncluded()); + msg.append(")"); + } } - - if(aa.getNoOfSequencesIncluded()>=0) - { - msg.append(" ("); - msg.append(MessageManager.getString("label.sequence_count")); - msg.append(aa.getNoOfSequencesIncluded()); - msg.append(")"); - } - + else if (anns != null) { boolean first = true; -- 1.7.10.2