]> gerrit.simantics Code Review - simantics/platform.git/commitdiff
Set initial priority for GroupStyleProfileEntry 60/4260/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 11:39:05 +0000 (14:39 +0300)
This ensures correct ordering of profile monitor text stacks

gitlab #543

Change-Id: Iaabc59674f6fb51bd1cb0fd77e224b8da6f9454d

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);
     }