if imgWidth <0
authoramwaterhouse <Andrew Waterhouse>
Mon, 9 May 2005 11:00:34 +0000 (11:00 +0000)
committeramwaterhouse <Andrew Waterhouse>
Mon, 9 May 2005 11:00:34 +0000 (11:00 +0000)
src/jalview/gui/SeqCanvas.java

index 1a8ae3d..2f02d57 100755 (executable)
@@ -188,7 +188,7 @@ 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
+      if(imgWidth<0 || imgHeight<1)\r
         return;\r
 \r
       imgWidth -= imgWidth%av.charWidth;\r