Remove redundancy in Eclipse
[jalview.git] / src / jalview / gui / SequenceRenderer.java
index 81daef7..8e8b066 100755 (executable)
@@ -208,6 +208,14 @@ public class SequenceRenderer
         int charOffset = 0;\r
         char s;\r
 \r
+        float fwidth = width + ((float)av.charWidth/(float)width)/width;\r
+\r
+\r
+        if(av.charWidth != (av.charWidth/width)*width)\r
+        {\r
+\r
+        }\r
+\r
         // Need to find the sequence position here.\r
         String sequence = seq.getSequence();\r
 \r
@@ -262,7 +270,7 @@ public class SequenceRenderer
 \r
             charOffset = (width - fm.charWidth(s)) / 2;\r
             graphics.drawString(String.valueOf(s),\r
-                charOffset + x1 + (width * (i - start)), (y1 + height) - pady);\r
+                charOffset + x1 + (int)(fwidth * (i - start)), (y1 + height) - pady);\r
         }\r
     }\r
 \r