From: amwaterhouse Date: Mon, 9 May 2005 11:00:34 +0000 (+0000) Subject: if imgWidth <0 X-Git-Tag: Release_2_0~306 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=f1b17730086767d55e4f5fea54b72e4d30d52e65;p=jalview.git if imgWidth <0 --- diff --git a/src/jalview/gui/SeqCanvas.java b/src/jalview/gui/SeqCanvas.java index 1a8ae3d..2f02d57 100755 --- a/src/jalview/gui/SeqCanvas.java +++ b/src/jalview/gui/SeqCanvas.java @@ -188,7 +188,7 @@ public void fastPaint(int horizontal, int vertical) // this draws the whole of the alignment imgWidth = getWidth(); imgHeight = getHeight(); - if(imgWidth==0 || imgHeight==0) + if(imgWidth<0 || imgHeight<1) return; imgWidth -= imgWidth%av.charWidth;