+1 error in group edit all sequences
authoramwaterhouse <Andrew Waterhouse>
Fri, 7 Apr 2006 10:05:51 +0000 (10:05 +0000)
committeramwaterhouse <Andrew Waterhouse>
Fri, 7 Apr 2006 10:05:51 +0000 (10:05 +0000)
src/jalview/appletgui/SeqPanel.java
src/jalview/gui/SeqPanel.java

index 021a5dc..55bc65a 100755 (executable)
@@ -694,7 +694,7 @@ public class SeqPanel
               {\r
                 //We can still insert gaps if the selectionGroup\r
                 //contains all the sequences\r
-                sg.setEndRes(sg.getEndRes()+1+startres-lastres);\r
+                sg.setEndRes(sg.getEndRes()+startres-lastres);\r
                 fixedRight = av.alignment.getWidth()+startres-lastres;\r
               }\r
               else\r
index 536d178..9b2f5f4 100755 (executable)
@@ -779,7 +779,7 @@ public class SeqPanel extends JPanel implements MouseListener,
               {\r
                 //We can still insert gaps if the selectionGroup\r
                 //contains all the sequences\r
-                sg.setEndRes(sg.getEndRes()+1+startres-lastres);\r
+                sg.setEndRes(sg.getEndRes()+startres-lastres);\r
                 fixedRight = av.alignment.getWidth()+startres-lastres;\r
               }\r
               else\r