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:
a801095
)
revised logic to avoid NPE
author
jprocter
<Jim Procter>
Fri, 12 Nov 2010 14:58:13 +0000
(14:58 +0000)
committer
jprocter
<Jim Procter>
Fri, 12 Nov 2010 14:58:13 +0000
(14:58 +0000)
src/jalview/gui/AnnotationPanel.java
patch
|
blob
|
history
diff --git
a/src/jalview/gui/AnnotationPanel.java
b/src/jalview/gui/AnnotationPanel.java
index
a7cca2c
..
01c933a
100755
(executable)
--- a/
src/jalview/gui/AnnotationPanel.java
+++ b/
src/jalview/gui/AnnotationPanel.java
@@
-1376,7
+1376,7
@@
public class AnnotationPanel extends JPanel implements MouseListener,
}
}
// draw profile if available
- if (aa.annotations[column].value != 0 && renderProfile)
+ if (renderProfile && aa.annotations[column].value != 0)
{
int profl[] = getProfileFor(aa, column);
int ht = y1, htn = y2 - y1;// aa.graphHeight;