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:
5fa8d71
)
Make sure fontmetrics exists for headless state
author
amwaterhouse
<Andrew Waterhouse>
Mon, 19 Sep 2005 13:41:25 +0000
(13:41 +0000)
committer
amwaterhouse
<Andrew Waterhouse>
Mon, 19 Sep 2005 13:41:25 +0000
(13:41 +0000)
src/jalview/gui/AnnotationPanel.java
patch
|
blob
|
history
diff --git
a/src/jalview/gui/AnnotationPanel.java
b/src/jalview/gui/AnnotationPanel.java
index
8a220b8
..
15bc284
100755
(executable)
--- a/
src/jalview/gui/AnnotationPanel.java
+++ b/
src/jalview/gui/AnnotationPanel.java
@@
-608,6
+608,9
@@
public class AnnotationPanel extends JPanel implements MouseListener,
*/
\r
public void drawComponent(Graphics2D g, int startRes, int endRes)
\r
{
\r
+ if(fm==null)
\r
+ fm = g.getFontMetrics();
\r
+
\r
g.setColor(Color.white);
\r
g.fillRect(0, 0, (endRes - startRes) * av.charWidth, getHeight());
\r
\r