X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fdatamodel%2FAnnotation.java;h=f163e40485578555dce1d27a2692cb26240c595b;hb=c19d2a91ca05e052e3408bf5852d88eb5d0608f1;hp=8e5c490f6087239707fa61a62fe5e91a250a9a83;hpb=ab43013b7e357b84b4abade0dba949668dfb2a0e;p=jalview.git diff --git a/src/jalview/datamodel/Annotation.java b/src/jalview/datamodel/Annotation.java index 8e5c490..f163e40 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 2.9.0b2) + * Copyright (C) 2015 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); }