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:
09bcf67
)
Make sure fontmetrics is not null
author
amwaterhouse
<Andrew Waterhouse>
Tue, 20 Sep 2005 13:13:07 +0000
(13:13 +0000)
committer
amwaterhouse
<Andrew Waterhouse>
Tue, 20 Sep 2005 13:13:07 +0000
(13:13 +0000)
src/jalview/gui/AnnotationPanel.java
patch
|
blob
|
history
diff --git
a/src/jalview/gui/AnnotationPanel.java
b/src/jalview/gui/AnnotationPanel.java
index
15bc284
..
bc14d66
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
if(fm==null)
\r
fm = g.getFontMetrics();
\r
\r