From 2ab244c2574a37aafb9b10cd8f2b27bf61dbe905 Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Fri, 21 Jun 2013 12:20:11 +0100 Subject: [PATCH] JAL-1294 JAL-1325 bugfix equals --- src/jalview/datamodel/GraphLine.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/jalview/datamodel/GraphLine.java b/src/jalview/datamodel/GraphLine.java index 619dbd2..001f6b2 100755 --- a/src/jalview/datamodel/GraphLine.java +++ b/src/jalview/datamodel/GraphLine.java @@ -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); } -- 1.7.10.2