Commit fb050fbf authored by Roland Kluge's avatar Roland Kluge
Browse files

Bugfix in GraphElementPropertyBasedComparator

parent e75d82a3
/*
* Copyright (c) 2005-2010 KOM Multimedia Communications Lab
* Copyright (c) 2005-2010 KOM Multimedia Communications Lab
*
* This file is part of Simonstrator.KOM.
*
......@@ -43,7 +43,7 @@ public class GraphElementPropertyBasedComparator implements Comparator<IElement>
throw new IllegalArgumentException(
String.format("Element %s does not have required property %s", o2, graphElementProperty));
return p1.doubleValue() == p2.doubleValue() ? 0 : p1.doubleValue() < p2.doubleValue() ? -1 : 0;
return p1.doubleValue() == p2.doubleValue() ? 0 : (p1.doubleValue() < p2.doubleValue() ? -1 : 1);
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment