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:
e3cad17
)
Check image is not null in fast paint
author
amwaterhouse
<Andrew Waterhouse>
Fri, 16 Sep 2005 14:34:57 +0000
(14:34 +0000)
committer
amwaterhouse
<Andrew Waterhouse>
Fri, 16 Sep 2005 14:34:57 +0000
(14:34 +0000)
src/jalview/gui/AnnotationPanel.java
patch
|
blob
|
history
diff --git
a/src/jalview/gui/AnnotationPanel.java
b/src/jalview/gui/AnnotationPanel.java
index
5f0d3c8
..
8a220b8
100755
(executable)
--- a/
src/jalview/gui/AnnotationPanel.java
+++ b/
src/jalview/gui/AnnotationPanel.java
@@
-530,7
+530,7
@@
public class AnnotationPanel extends JPanel implements MouseListener,
g.setColor(Color.white);
\r
g.fillRect(0, 0, getWidth(), getHeight());
\r
\r
- if (fastPaint)
\r
+ if (fastPaint && image!=null)
\r
{
\r
g.drawImage(image, 0, 0, this);
\r
fastPaint = false;
\r