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:
da144cf
)
Annotasiont[j] might be null
author
amwaterhouse
<Andrew Waterhouse>
Thu, 12 Oct 2006 13:22:03 +0000
(13:22 +0000)
committer
amwaterhouse
<Andrew Waterhouse>
Thu, 12 Oct 2006 13:22:03 +0000
(13:22 +0000)
src/jalview/gui/AnnotationPanel.java
patch
|
blob
|
history
diff --git
a/src/jalview/gui/AnnotationPanel.java
b/src/jalview/gui/AnnotationPanel.java
index
dbc1c92
..
9fee829
100755
(executable)
--- a/
src/jalview/gui/AnnotationPanel.java
+++ b/
src/jalview/gui/AnnotationPanel.java
@@
-1192,13
+1192,16
@@
public class AnnotationPanel extends JPanel implements MouseListener,
\r
for (int j = sRes; j < eRes; j++)
\r
{
\r
+ if (aa.annotations[j] != null)
\r
+ {
\r
g.setColor(aa.annotations[j].colour);
\r
\r
- height = (int) ((aa.annotations[j].value / aa.graphMax) * y);
\r
- if(height>y)
\r
+ height = (int) ( (aa.annotations[j].value / aa.graphMax) * y);
\r
+ if (height > y)
\r
height = y;
\r
\r
g.fillRect(x, y - height, av.charWidth, height);
\r
+ }
\r
x += av.charWidth;
\r
}
\r
}
\r