JAL-2505 apply changed description to new, not deleted, feature!
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Thu, 10 Aug 2017 09:17:14 +0000 (10:17 +0100)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Thu, 10 Aug 2017 09:17:14 +0000 (10:17 +0100)
src/jalview/gui/FeatureRenderer.java

index 4d82d7e..d580eaf 100644 (file)
@@ -459,7 +459,7 @@ public class FeatureRenderer extends
         sequences.get(0).deleteFeature(sf);
         SequenceFeature newSf = new SequenceFeature(sf, enteredType,
                 newBegin, newEnd, enteredGroup, sf.getScore());
-        sf.setDescription(enteredDescription);
+        newSf.setDescription(enteredDescription);
         ffile.parseDescriptionHTML(newSf, false);
         // amend features dialog only updates one sequence at a time
         sequences.get(0).addSequenceFeature(newSf);