git://source.jalview.org
/
jalview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
03cb597
)
JAL-4216 compute size of annotation using start/end of sequence and given length...
author
James Procter
<j.procter@dundee.ac.uk>
Thu, 29 Jun 2023 14:38:22 +0000
(15:38 +0100)
committer
James Procter
<j.procter@dundee.ac.uk>
Fri, 30 Jun 2023 10:27:58 +0000
(11:27 +0100)
src/jalview/ext/jmol/JmolParser.java
patch
|
blob
|
history
diff --git
a/src/jalview/ext/jmol/JmolParser.java
b/src/jalview/ext/jmol/JmolParser.java
index
c64dac1
..
57b406e
100644
(file)
--- a/
src/jalview/ext/jmol/JmolParser.java
+++ b/
src/jalview/ext/jmol/JmolParser.java
@@
-488,7
+488,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')