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:
738ba13
)
Check if graphics is null in labelSize
author
amwaterhouse
<Andrew Waterhouse>
Fri, 21 Jan 2005 18:29:07 +0000
(18:29 +0000)
committer
amwaterhouse
<Andrew Waterhouse>
Fri, 21 Jan 2005 18:29:07 +0000
(18:29 +0000)
src/jalview/gui/IdCanvas.java
patch
|
blob
|
history
diff --git
a/src/jalview/gui/IdCanvas.java
b/src/jalview/gui/IdCanvas.java
index
6d4a5b9
..
1bf5cc6
100755
(executable)
--- a/
src/jalview/gui/IdCanvas.java
+++ b/
src/jalview/gui/IdCanvas.java
@@
-158,6
+158,8
@@
public class IdCanvas extends JPanel
\r
public Dimension getLabelWidth()
\r
{
\r
+ if(getGraphics()==null)
\r
+ return null;
\r
\r
FontMetrics fm = this.getGraphics().getFontMetrics(av.font);
\r
AlignmentI al = av.getAlignment();
\r