From d59dd3813a1d143ff99dc8d64d3af76744911928 Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Thu, 17 Aug 2006 12:34:07 +0000 Subject: [PATCH] Monospace check --- src/jalview/gui/SequenceRenderer.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/jalview/gui/SequenceRenderer.java b/src/jalview/gui/SequenceRenderer.java index a8a9a47..1e66236 100755 --- 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(); monospacedFont = - dwidth == fm.getStringBounds("|",g).getWidth() - && av.charWidth == (int)dwidth; + (dwidth == fm.getStringBounds("|",g).getWidth() + && (float)av.charWidth == dwidth); this.renderGaps = renderGaps; } -- 1.7.10.2