From: Tuukka Lehtonen Date: Thu, 20 Apr 2017 08:20:31 +0000 (+0300) Subject: Fixed priority comparison direction change caused by commit 4495707b X-Git-Tag: v1.29.0~97 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=603505b13bf627398895484ec567352b91fbb4ec;p=simantics%2Fplatform.git Fixed priority comparison direction change caused by commit 4495707b refs #7147 Change-Id: I6bc9c7b165f80a76b58bdc4f7f4d754e705e962e --- diff --git a/bundles/org.simantics.selectionview/src/org/simantics/selectionview/ComparableTabContributor.java b/bundles/org.simantics.selectionview/src/org/simantics/selectionview/ComparableTabContributor.java index 2077a3a87..83230044d 100644 --- a/bundles/org.simantics.selectionview/src/org/simantics/selectionview/ComparableTabContributor.java +++ b/bundles/org.simantics.selectionview/src/org/simantics/selectionview/ComparableTabContributor.java @@ -79,7 +79,7 @@ public class ComparableTabContributor implements PropertyTabContributor, Compara @Override public int compareTo(ComparableTabContributor o) { - int comp = Double.compare(priority, o.priority); + int comp = Double.compare(o.priority, priority); if(comp != 0) return comp; return id.compareTo(o.id); }