X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fdatamodel%2FAnnotation.java;h=71ebbb3f87daff70034c35427fc428fa7dd1e7fc;hb=44cbaf5e4c094d90ef1294dd47c75a652e5f2509;hp=8e5c490f6087239707fa61a62fe5e91a250a9a83;hpb=ab43013b7e357b84b4abade0dba949668dfb2a0e;p=jalview.git diff --git a/src/jalview/datamodel/Annotation.java b/src/jalview/datamodel/Annotation.java index 8e5c490..71ebbb3 100755 --- a/src/jalview/datamodel/Annotation.java +++ b/src/jalview/datamodel/Annotation.java @@ -1,6 +1,6 @@ /* - * Jalview - A Sequence Alignment Editor and Viewer (Version 2.8.2b1) - * Copyright (C) 2014 The Jalview Authors + * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$) + * Copyright (C) $$Year-Rel$$ The Jalview Authors * * This file is part of Jalview. * @@ -107,9 +107,13 @@ public class Annotation return; } if (that.displayCharacter != null) + { displayCharacter = new String(that.displayCharacter); + } if (that.description != null) + { description = new String(that.description); + } secondaryStructure = that.secondaryStructure; value = that.value; colour = that.colour; @@ -168,7 +172,7 @@ public class Annotation { sb.append(","); } - if (value != Float.NaN) + if (!Float.isNaN(value)) { sb.append(value); }