From 6cc69d298e6ee55f08aafb1c747507607092beaf Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Wed, 9 Jun 2021 16:53:09 +0100 Subject: [PATCH] =?utf8?q?JAL-3840=20don=E2=80=99t=20update=20the=20modal=20?= =?utf8?q?residue=20count=20for=20gaps?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/jalview/datamodel/ResidueCount.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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; } -- 1.7.10.2