getWidth -1 for trim right
authoramwaterhouse <Andrew Waterhouse>
Fri, 2 Feb 2007 17:34:53 +0000 (17:34 +0000)
committeramwaterhouse <Andrew Waterhouse>
Fri, 2 Feb 2007 17:34:53 +0000 (17:34 +0000)
src/jalview/commands/TrimRegionCommand.java

index 8166ed6..37518bc 100644 (file)
@@ -62,7 +62,7 @@ public class TrimRegionCommand
     }\r
     else if (command.equalsIgnoreCase(TRIM_RIGHT))\r
     {\r
-      int width = al.getWidth()-column;\r
+      int width = al.getWidth()-column-1;\r
       if(width<2)\r
       {\r
         return;\r