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
Merge branch 'develop' into patch/JAL-4110_stdout_for_tests
[jalview.git]
/
src
/
jalview
/
datamodel
/
ContactListImpl.java
diff --git
a/src/jalview/datamodel/ContactListImpl.java
b/src/jalview/datamodel/ContactListImpl.java
index
69dcf71
..
7058ac7
100644
(file)
--- a/
src/jalview/datamodel/ContactListImpl.java
+++ b/
src/jalview/datamodel/ContactListImpl.java
@@
-55,9
+55,9
@@
public class ContactListImpl implements ContactListI
{
from_column = 0;
}
{
from_column = 0;
}
- if (to_column > getContactHeight())
+ if (to_column >= getContactHeight())
{
{
- to_column = getContactHeight();
+ to_column = getContactHeight()-1;
}
ContactRange cr = new ContactRange();
cr.setFrom_column(from_column);
}
ContactRange cr = new ContactRange();
cr.setFrom_column(from_column);
@@
-88,7
+88,7
@@
public class ContactListImpl implements ContactListI
}
}
}
}
}
}
- if (tot > 0)
+ if (tot > 0 && to_column>from_column)
{
cr.setMean(tot / (1 + to_column - from_column));
}
{
cr.setMean(tot / (1 + to_column - from_column));
}