git://source.jalview.org
/
jalview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
56d6828
)
JAL-2505 use setter not direct access to sf.description
author
gmungoc
<g.m.carstairs@dundee.ac.uk>
Mon, 22 May 2017 15:40:48 +0000
(16:40 +0100)
committer
gmungoc
<g.m.carstairs@dundee.ac.uk>
Mon, 22 May 2017 15:40:48 +0000
(16:40 +0100)
src/jalview/io/FeaturesFile.java
patch
|
blob
|
history
diff --git
a/src/jalview/io/FeaturesFile.java
b/src/jalview/io/FeaturesFile.java
index
fcf1d70
..
2ce72ae
100755
(executable)
--- 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);