From: Renia Correya Date: Fri, 7 Jun 2024 14:16:09 +0000 (+0100) Subject: JAL-4426 Defect fix to display number of sequences only for bar graph X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=a4fb68eb7d62e52ac29858fb65a8fa3eda708d6f;p=jalview.git JAL-4426 Defect fix to display number of sequences only for bar graph annotations --- 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;