git://source.jalview.org
/
jalview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
JAL-1998 bugfix for division by zero error for PDB entries with chain(s) consisiting...
[jalview.git]
/
src
/
MCview
/
PDBChain.java
diff --git
a/src/MCview/PDBChain.java
b/src/MCview/PDBChain.java
index
6d5f9fe
..
a43626f
100755
(executable)
--- a/
src/MCview/PDBChain.java
+++ b/
src/MCview/PDBChain.java
@@
-252,7
+252,7
@@
public class PDBChain
* If > 99% 'P', flag as nucleotide; note the count doesn't include the last
* residue
*/
- if (residues.size() > 0 && (numNa / (residues.size() - 1) > 0.99))
+ if (residues.size() > 1 && (numNa / (residues.size() - 1) > 0.99))
{
isNa = true;
}