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:
709f823
)
return from painting if size is 0
author
amwaterhouse
<Andrew Waterhouse>
Fri, 8 Apr 2005 16:15:06 +0000
(16:15 +0000)
committer
amwaterhouse
<Andrew Waterhouse>
Fri, 8 Apr 2005 16:15:06 +0000
(16:15 +0000)
src/jalview/gui/SeqCanvas.java
patch
|
blob
|
history
diff --git
a/src/jalview/gui/SeqCanvas.java
b/src/jalview/gui/SeqCanvas.java
index
38825c5
..
698489e
100755
(executable)
--- a/
src/jalview/gui/SeqCanvas.java
+++ b/
src/jalview/gui/SeqCanvas.java
@@
-177,6
+177,8
@@
public void fastPaint(int horizontal, int vertical)
// this draws the whole of the alignment
\r
imgWidth = getWidth();
\r
imgHeight = getHeight();
\r
+ if(imgWidth==0 || imgHeight==0)
\r
+ return;
\r
\r
imgWidth -= imgWidth%av.charWidth;
\r
imgHeight-= imgHeight%av.charHeight;
\r