JAL-2505 use setter not direct access to sf.description
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Mon, 22 May 2017 15:40:48 +0000 (16:40 +0100)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Mon, 22 May 2017 15:40:48 +0000 (16:40 +0100)
src/jalview/io/FeaturesFile.java

index fcf1d70..2ce72ae 100755 (executable)
@@ -472,8 +472,11 @@ public class FeaturesFile extends AlignFile implements FeaturesSourceI
     ParseHtmlBodyAndLinks parsed = new ParseHtmlBodyAndLinks(
             sf.getDescription(), removeHTML, newline);
 
-    sf.description = (removeHTML) ? parsed.getNonHtmlContent()
-            : sf.description;
+    if (removeHTML)
+    {
+      sf.setDescription(parsed.getNonHtmlContent());
+    }
+
     for (String link : parsed.getLinks())
     {
       sf.addLink(link);