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:
de966b2
)
JAL-2721 no fastPaint if img has been nulled by fontChanged!
bug/JAL-2721fastPaintNPE
author
gmungoc
<g.m.carstairs@dundee.ac.uk>
Wed, 6 Sep 2017 15:03:47 +0000
(16:03 +0100)
committer
gmungoc
<g.m.carstairs@dundee.ac.uk>
Wed, 6 Sep 2017 15:03:47 +0000
(16:03 +0100)
src/jalview/gui/SeqCanvas.java
patch
|
blob
|
history
diff --git
a/src/jalview/gui/SeqCanvas.java
b/src/jalview/gui/SeqCanvas.java
index
191a7d8
..
4e896a0
100755
(executable)
--- a/
src/jalview/gui/SeqCanvas.java
+++ b/
src/jalview/gui/SeqCanvas.java
@@
-283,7
+283,7
@@
public class SeqCanvas extends JComponent implements ViewportListenerI
*/
public void fastPaint(int horizontal, int vertical)
{
- if (fastpainting || gg == null)
+ if (fastpainting || gg == null || img == null)
{
return;
}