pad-1 gaps fixed.
authorjprocter <Jim Procter>
Tue, 14 Jun 2005 15:57:56 +0000 (15:57 +0000)
committerjprocter <Jim Procter>
Tue, 14 Jun 2005 15:57:56 +0000 (15:57 +0000)
src/jalview/gui/AlignFrame.java

index f074277..484b8cd 100755 (executable)
@@ -707,7 +707,7 @@ public class AlignFrame
                                    HistoryItem.HIDE));\r
 \r
     SequenceI current;\r
-    int Width = viewport.getAlignment().getWidth() - 1;\r
+    int Width = viewport.getAlignment().getWidth();\r
 \r
     for (int i = 0; i < viewport.getAlignment().getSequences().size();\r
          i++)\r
@@ -716,7 +716,7 @@ public class AlignFrame
 \r
       if (current.getLength() < Width)\r
       {\r
-        current.insertCharAt(Width, viewport.getGapCharacter());\r
+        current.insertCharAt(Width-1, viewport.getGapCharacter());\r
       }\r
     }\r
 \r