From: Jim Procter Date: Wed, 9 Jun 2021 15:40:42 +0000 (+0100) Subject: fixes JAL-3840 X-Git-Tag: Release_2_11_1_5~7^2~1 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=d43c7d9caca02859542914401ec945744c026bf1;p=jalview.git fixes JAL-3840 --- diff --git a/src/jalview/datamodel/ResidueCount.java b/src/jalview/datamodel/ResidueCount.java index b21dd77..6b52166 100644 --- a/src/jalview/datamodel/ResidueCount.java +++ b/src/jalview/datamodel/ResidueCount.java @@ -301,15 +301,7 @@ public class ResidueCount */ public int addGap() { - int newValue; - if (useIntCounts) - { - newValue = ++intCounts[GAP_COUNT]; - } - else - { - newValue = ++counts[GAP_COUNT]; - } + int newValue = increment(GAP_COUNT); return newValue; }