From: amwaterhouse Date: Fri, 8 Apr 2005 16:15:06 +0000 (+0000) Subject: return from painting if size is 0 X-Git-Tag: Release_2_0~446 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=9218eaf932c0847b83e9886f5c06d70a0bc7808e;p=jalview.git return from painting if size is 0 --- diff --git a/src/jalview/gui/SeqCanvas.java b/src/jalview/gui/SeqCanvas.java index 38825c5..698489e 100755 --- 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 imgWidth = getWidth(); imgHeight = getHeight(); + if(imgWidth==0 || imgHeight==0) + return; imgWidth -= imgWidth%av.charWidth; imgHeight-= imgHeight%av.charHeight;