From a7a16a1cc2d9b2c840d50b02163cbc6327bd28bb Mon Sep 17 00:00:00 2001 From: James Procter Date: Thu, 29 Jun 2023 15:38:22 +0100 Subject: [PATCH] JAL-4216 compute size of annotation using start/end of sequence and given length. This might not work... --- src/jalview/ext/jmol/JmolParser.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jalview/ext/jmol/JmolParser.java b/src/jalview/ext/jmol/JmolParser.java index ab6bbcc..8bc5a98 100644 --- a/src/jalview/ext/jmol/JmolParser.java +++ b/src/jalview/ext/jmol/JmolParser.java @@ -434,7 +434,7 @@ public class JmolParser extends StructureFile implements JmolStatusListener { int length = sq.getLength(); boolean ssFound = false; - Annotation asecstr[] = new Annotation[length + firstResNum - 1]; + Annotation asecstr[] = new Annotation[length + (firstResNum-sq.getStart())]; for (int p = 0; p < length; p++) { if (secstr[p] >= 'A' && secstr[p] <= 'z') -- 1.7.10.2