From d43c7d9caca02859542914401ec945744c026bf1 Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Wed, 9 Jun 2021 16:40:42 +0100 Subject: [PATCH] fixes JAL-3840 --- src/jalview/datamodel/ResidueCount.java | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) 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; } -- 1.7.10.2