From: Jim Procter Date: Wed, 9 Jun 2021 15:53:09 +0000 (+0100) Subject: JAL-3840 don’t update the modal residue count for gaps X-Git-Tag: Release_2_11_2_0~44 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2Fpatch%2FJAL-3840_2_11_2;p=jalview.git JAL-3840 don’t update the modal residue count for gaps --- diff --git a/src/jalview/datamodel/ResidueCount.java b/src/jalview/datamodel/ResidueCount.java index 6b52166..efab97c 100644 --- a/src/jalview/datamodel/ResidueCount.java +++ b/src/jalview/datamodel/ResidueCount.java @@ -212,7 +212,12 @@ public class ResidueCount counts[offset] = (short) ++newValue; } } - maxCount = Math.max(maxCount, newValue); + + if (offset!=GAP_COUNT) + { + // update modal residue count + maxCount = Math.max(maxCount, newValue); + } return newValue; }