]> gerrit.simantics Code Review - simantics/platform.git/commitdiff
Fixed priority comparison direction change caused by commit 4495707b 35/435/1
authorTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Thu, 20 Apr 2017 08:20:31 +0000 (11:20 +0300)
committerTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Thu, 20 Apr 2017 08:20:31 +0000 (11:20 +0300)
refs #7147

Change-Id: I6bc9c7b165f80a76b58bdc4f7f4d754e705e962e

bundles/org.simantics.selectionview/src/org/simantics/selectionview/ComparableTabContributor.java

index 2077a3a87c2cdc8da744f155571b6b3355c4e958..83230044d7a7951a304a0e581129b39ac6154281 100644 (file)
@@ -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);
     }