From: gmungoc Date: Thu, 10 Aug 2017 09:17:14 +0000 (+0100) Subject: JAL-2505 apply changed description to new, not deleted, feature! X-Git-Tag: Release_2_10_3b1~152 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=29ac9aa26871544cbbd43f4ea313144a6bd8ae39;p=jalview.git JAL-2505 apply changed description to new, not deleted, feature! --- diff --git a/src/jalview/gui/FeatureRenderer.java b/src/jalview/gui/FeatureRenderer.java index 4d82d7e..d580eaf 100644 --- a/src/jalview/gui/FeatureRenderer.java +++ b/src/jalview/gui/FeatureRenderer.java @@ -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);