git://source.jalview.org
/
jalview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ddc09b0
)
paintComponent. not paint
author
amwaterhouse
<Andrew Waterhouse>
Mon, 9 May 2005 11:02:57 +0000
(11:02 +0000)
committer
amwaterhouse
<Andrew Waterhouse>
Mon, 9 May 2005 11:02:57 +0000
(11:02 +0000)
src/jalview/gui/SeqCanvas.java
patch
|
blob
|
history
diff --git
a/src/jalview/gui/SeqCanvas.java
b/src/jalview/gui/SeqCanvas.java
index
2f02d57
..
74f6274
100755
(executable)
--- 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.
\r
*/
\r
\r
- public void paint(Graphics g)
\r
+ public void paintComponent(Graphics g)
\r
{
\r
g.setColor(Color.white);
\r
g.fillRect(0, 0, getWidth(), getHeight());
\r
@@
-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<1)
\r
+ if(imgWidth<1 || imgHeight<1)
\r
return;
\r
\r
imgWidth -= imgWidth%av.charWidth;
\r