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:
38fac06
)
Monospace check
author
amwaterhouse
<Andrew Waterhouse>
Thu, 17 Aug 2006 12:34:07 +0000
(12:34 +0000)
committer
amwaterhouse
<Andrew Waterhouse>
Thu, 17 Aug 2006 12:34:07 +0000
(12:34 +0000)
src/jalview/gui/SequenceRenderer.java
patch
|
blob
|
history
diff --git
a/src/jalview/gui/SequenceRenderer.java
b/src/jalview/gui/SequenceRenderer.java
index
a8a9a47
..
1e66236
100755
(executable)
--- a/
src/jalview/gui/SequenceRenderer.java
+++ b/
src/jalview/gui/SequenceRenderer.java
@@
-66,8
+66,8
@@
public class SequenceRenderer
double dwidth = fm.getStringBounds("M", g).getWidth();
\r
\r
monospacedFont =
\r
- dwidth == fm.getStringBounds("|",g).getWidth()
\r
- && av.charWidth == (int)dwidth;
\r
+ (dwidth == fm.getStringBounds("|",g).getWidth()
\r
+ && (float)av.charWidth == dwidth);
\r
\r
this.renderGaps = renderGaps;
\r
}
\r