Monospace check
authoramwaterhouse <Andrew Waterhouse>
Thu, 17 Aug 2006 12:34:07 +0000 (12:34 +0000)
committeramwaterhouse <Andrew Waterhouse>
Thu, 17 Aug 2006 12:34:07 +0000 (12:34 +0000)
src/jalview/gui/SequenceRenderer.java

index a8a9a47..1e66236 100755 (executable)
@@ -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