Merge branch 'patch/JAL-4216_negative_startend' into releases/Release_2_11_2_Branch
[jalview.git] / src / jalview / ext / jmol / JmolParser.java
index ab6bbcc..8bc5a98 100644 (file)
@@ -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')