From: Tuukka Lehtonen Date: Fri, 29 May 2020 11:39:05 +0000 (+0300) Subject: Set initial priority for GroupStyleProfileEntry X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F50%2F4250%2F1;p=simantics%2Fplatform.git Set initial priority for GroupStyleProfileEntry This ensures correct ordering of profile monitor text stacks gitlab #543 Change-Id: Iaabc59674f6fb51bd1cb0fd77e224b8da6f9454d (cherry picked from commit 24bc1bb36da76bf82768b33c2aa07fe2a0324461) --- 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); }