From: Tuukka Lehtonen Date: Fri, 29 May 2020 11:39:05 +0000 (+0300) Subject: Set initial priority for GroupStyleProfileEntry X-Git-Tag: v1.43.0~21^2 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F60%2F4260%2F1;p=simantics%2Fplatform.git Set initial priority for GroupStyleProfileEntry This ensures correct ordering of profile monitor text stacks gitlab #543 Change-Id: Iaabc59674f6fb51bd1cb0fd77e224b8da6f9454d --- diff --git a/bundles/org.simantics.diagram/src/org/simantics/diagram/adapter/GroupStyleProfileEntry.java b/bundles/org.simantics.diagram/src/org/simantics/diagram/adapter/GroupStyleProfileEntry.java index bdc3af02c..f38d1971b 100644 --- a/bundles/org.simantics.diagram/src/org/simantics/diagram/adapter/GroupStyleProfileEntry.java +++ b/bundles/org.simantics.diagram/src/org/simantics/diagram/adapter/GroupStyleProfileEntry.java @@ -44,6 +44,7 @@ public class GroupStyleProfileEntry implements ProfileEntry { else this.priority = 0; GroupStyleProfileEntry.this.style = graph.adapt(style, Style.class); + GroupStyleProfileEntry.this.style.setPriority(this.priority); GroupStyleProfileEntry.this.group = graph.adapt(group, Group.class); }