]> gerrit.simantics Code Review - simantics/platform.git/commitdiff
Fixed Typical inheritance profile style implementation for I/O tables
authorTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Tue, 22 Nov 2016 11:04:13 +0000 (13:04 +0200)
committerTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Tue, 22 Nov 2016 11:04:13 +0000 (13:04 +0200)
Now all transforms are calculated properly using
DiagramGraphUtil.getDynamicWorldTransform in
the default case. This fixes the highlights for flags
that are attached to a diagram template flag table.

refs #6812

bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/diagram/style/TypicalInheritanceStyle.java

index c0de412678315b21ceb99ba0832e6bf281295131..f7260c039b7d8c23c25fbb61702cfc028a75b1fb 100644 (file)
@@ -129,7 +129,7 @@ public class TypicalInheritanceStyle extends StyleBase<TypicalInheritanceResult>
                 return new TypicalInheritanceResult(templatized, null, worldTransform, hasElementSource, null);\r
             }\r
 \r
-            AffineTransform worldTransform = DiagramGraphUtil.getWorldTransform(graph, element);\r
+            AffineTransform worldTransform = DiagramGraphUtil.getDynamicWorldTransform(graph, runtimeDiagram, element);\r
             return new TypicalInheritanceResult(templatized, null, worldTransform, hasElementSource, null);\r
         }\r
 \r