JAL-1294 JAL-1325 bugfix equals
authorJim Procter <jprocter@compbio.dundee.ac.uk>
Fri, 21 Jun 2013 11:20:11 +0000 (12:20 +0100)
committerJim Procter <jprocter@compbio.dundee.ac.uk>
Fri, 21 Jun 2013 13:11:45 +0000 (14:11 +0100)
src/jalview/datamodel/GraphLine.java

index 619dbd2..001f6b2 100755 (executable)
@@ -58,9 +58,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);
     }