Set initial priority for GroupStyleProfileEntry 50/4250/1
authorTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Fri, 29 May 2020 11:39:05 +0000 (14:39 +0300)
committerTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Fri, 29 May 2020 13:20:02 +0000 (13:20 +0000)
This ensures correct ordering of profile monitor text stacks

gitlab #543

Change-Id: Iaabc59674f6fb51bd1cb0fd77e224b8da6f9454d
(cherry picked from commit 24bc1bb36da76bf82768b33c2aa07fe2a0324461)

bundles/org.simantics.diagram/src/org/simantics/diagram/adapter/GroupStyleProfileEntry.java

index bdc3af02c81be3029163123631fb154e5cbaedef..f38d1971b50a960bb3b80d6b435ffc4d6054e40d 100644 (file)
@@ -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);
     }