From 9218eaf932c0847b83e9886f5c06d70a0bc7808e Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Fri, 8 Apr 2005 16:15:06 +0000 Subject: [PATCH] return from painting if size is 0 --- src/jalview/gui/SeqCanvas.java | 2 ++ 1 file changed, 2 insertions(+) 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; -- 1.7.10.2