From: Jim Procter Date: Wed, 9 Jun 2021 15:40:42 +0000 (+0100) Subject: fixes JAL-3840 X-Git-Tag: Release_2_11_2_0~45 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=d49c33d2fbb65ad7477cb3a538b9e32a68f374a2;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; }