From 477163af61c56522881d6ce5ddc09102f719833c Mon Sep 17 00:00:00 2001 From: gmungoc Date: Mon, 22 May 2017 16:40:48 +0100 Subject: [PATCH] JAL-2505 use setter not direct access to sf.description --- src/jalview/io/FeaturesFile.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/jalview/io/FeaturesFile.java b/src/jalview/io/FeaturesFile.java index fcf1d70..2ce72ae 100755 --- a/src/jalview/io/FeaturesFile.java +++ b/src/jalview/io/FeaturesFile.java @@ -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); -- 1.7.10.2