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:
5fafaa6
)
null pointer fix.
author
jprocter
<Jim Procter>
Mon, 13 Jun 2005 14:23:17 +0000
(14:23 +0000)
committer
jprocter
<Jim Procter>
Mon, 13 Jun 2005 14:23:17 +0000
(14:23 +0000)
src/jalview/gui/SeqCanvas.java
patch
|
blob
|
history
diff --git
a/src/jalview/gui/SeqCanvas.java
b/src/jalview/gui/SeqCanvas.java
index
789fb3f
..
c442465
100755
(executable)
--- a/
src/jalview/gui/SeqCanvas.java
+++ b/
src/jalview/gui/SeqCanvas.java
@@
-219,8
+219,9
@@
public class SeqCanvas
// Set this to false to force a full panel paint
\r
public void paintComponent(Graphics g)
\r
{
\r
- if (fastPaint || getWidth() != g.getClipBounds().width
\r
- || getHeight() != g.getClipBounds().height)
\r
+ if (img!=null
\r
+ && (fastPaint || getWidth() != g.getClipBounds().width
\r
+ || getHeight() != g.getClipBounds().height))
\r
{
\r
g.drawImage(img, 0, 0, this);
\r
fastPaint = false;
\r