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:
4b9f8d8
)
JAL-2164 bugfix to convert insCodes of '\000' to ' ' in JmolParser, this fixes the...
author
tcofoegbu
<tcnofoegbu@dundee.ac.uk>
Mon, 1 Aug 2016 16:21:08 +0000
(17:21 +0100)
committer
tcofoegbu
<tcnofoegbu@dundee.ac.uk>
Mon, 1 Aug 2016 16:21:08 +0000
(17:21 +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
baebe08
..
ea969ff
100644
(file)
--- a/
src/jalview/ext/jmol/JmolParser.java
+++ b/
src/jalview/ext/jmol/JmolParser.java
@@
-209,7
+209,8
@@
public class JmolParser extends StructureFile implements JmolStatusListener
Atom curAtom = new Atom(atom.x, atom.y, atom.z);
curAtom.atomIndex = atom.getIndex();
curAtom.chain = atom.getChainIDStr();
- curAtom.insCode = atom.group.getInsertionCode();
+ curAtom.insCode = atom.group.getInsertionCode() == '\000' ? ' '
+ : atom.group.getInsertionCode();
curAtom.name = atom.getAtomName();
curAtom.number = atom.getAtomNumber();
curAtom.resName = atom.getGroup3(true);