Merge branch 'hotfix/JAL-1524' into Release_2_8_1_Branch
[jalview.git] / src / jalview / datamodel / GraphLine.java
index 619dbd2..ed4bd8d 100755 (executable)
@@ -1,6 +1,6 @@
 /*
- * Jalview - A Sequence Alignment Editor and Viewer (Version 2.8)
- * Copyright (C) 2012 J Procter, AM Waterhouse, LM Lui, J Engelhardt, G Barton, M Clamp, S Searle
+ * Jalview - A Sequence Alignment Editor and Viewer (Version 2.8.1)
+ * Copyright (C) 2014 The Jalview Authors
  * 
  * This file is part of Jalview.
  * 
@@ -14,6 +14,7 @@
  * PURPOSE.  See the GNU General Public License for more details.
  * 
  * You should have received a copy of the GNU General Public License along with Jalview.  If not, see <http://www.gnu.org/licenses/>.
+ * The Jalview Authors are detailed in the 'AUTHORS' file.
  */
 package jalview.datamodel;
 
@@ -58,9 +59,9 @@ public class GraphLine
     {
       GraphLine other = (GraphLine) obj;
       return displayed == other.displayed
-              && value != other.value
+              && value == other.value
               && (colour != null ? (other.colour != null && other.colour
-                      .equals(label)) : other.colour == null)
+                      .equals(colour)) : other.colour == null)
               && (label != null ? (other.label != null && other.label
                       .equals(label)) : other.label == null);
     }