From: amwaterhouse Date: Mon, 9 May 2005 11:02:57 +0000 (+0000) Subject: paintComponent. not paint X-Git-Tag: Release_2_0~304 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=0a17b4b2eb2463fb9b6828cd14917dbfacd77cc2;p=jalview.git paintComponent. not paint --- diff --git a/src/jalview/gui/SeqCanvas.java b/src/jalview/gui/SeqCanvas.java index 2f02d57..74f6274 100755 --- a/src/jalview/gui/SeqCanvas.java +++ b/src/jalview/gui/SeqCanvas.java @@ -173,7 +173,7 @@ public void fastPaint(int horizontal, int vertical) * in the adjustment listener in SeqPanel when the scrollbars move. */ - public void paint(Graphics g) + public void paintComponent(Graphics g) { g.setColor(Color.white); g.fillRect(0, 0, getWidth(), getHeight()); @@ -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<1) + if(imgWidth<1 || imgHeight<1) return; imgWidth -= imgWidth%av.charWidth;