From 562e94c776a874b2cb8e29e76d24c1478f0a69c8 Mon Sep 17 00:00:00 2001 From: James Procter Date: Thu, 28 Sep 2023 17:59:17 +0100 Subject: [PATCH] =?utf8?q?JAL-3858=20don=E2=80=99t=20divide=20if=20we=20only?= =?utf8?q?=20had=20one=20value=20to=20count?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/jalview/datamodel/ContactListImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jalview/datamodel/ContactListImpl.java b/src/jalview/datamodel/ContactListImpl.java index bb31c5d..7058ac7 100644 --- a/src/jalview/datamodel/ContactListImpl.java +++ b/src/jalview/datamodel/ContactListImpl.java @@ -88,7 +88,7 @@ public class ContactListImpl implements ContactListI } } } - if (tot > 0) + if (tot > 0 && to_column>from_column) { cr.setMean(tot / (1 + to_column - from_column)); } -- 1.7.10.2