From 0a17b4b2eb2463fb9b6828cd14917dbfacd77cc2 Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Mon, 9 May 2005 11:02:57 +0000 Subject: [PATCH] paintComponent. not paint --- src/jalview/gui/SeqCanvas.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 1.7.10.2