]> gerrit.simantics Code Review - simantics/platform.git/commitdiff
Fixed the number of parameters for DIA.SCLTextGridStyle_texts function
authorJussi Koskela <jussi.koskela@semantum.fi>
Fri, 26 Jun 2020 06:46:34 +0000 (09:46 +0300)
committerAntti Villberg <antti.villberg@semantum.fi>
Wed, 29 Jul 2020 15:16:16 +0000 (18:16 +0300)
Change-Id: I9d64b8d3517b3edf39b8278166f748c72dc22baf

bundles/org.simantics.diagram/src/org/simantics/diagram/profile/SCLTextGridStyle.java

index 16b205388733c0ba5f3d86fea0b22b6781632012..3a6b688a394140ba69d63483f8e5e497a34ba500 100644 (file)
@@ -17,7 +17,7 @@ import org.simantics.diagram.stubs.G2DResource;
 import org.simantics.diagram.synchronization.graph.DiagramGraphUtil;
 import org.simantics.modeling.ModelingResources;
 import org.simantics.scl.runtime.function.Function1;
-import org.simantics.scl.runtime.tuple.Tuple3;
+import org.simantics.scl.runtime.tuple.Tuple4;
 import org.simantics.utils.datastructures.Pair;
 
 /**
@@ -81,8 +81,8 @@ public class SCLTextGridStyle extends TextGridStyle {
                        return null;
 
                Variable styleVariable = Variables.getVariable(graph, getResource());
-               Function1<Variable,Tuple3> function = styleVariable.getPossiblePropertyValue(graph, DIA.SCLTextGridStyle_texts);
-               Tuple3 result = Simantics.applySCLRead(graph, function, moduleVariable);
+               Function1<Variable,Tuple4> function = styleVariable.getPossiblePropertyValue(graph, DIA.SCLTextGridStyle_texts);
+               Tuple4 result = Simantics.applySCLRead(graph, function, moduleVariable);
                
                AffineTransform transform = DiagramGraphUtil.getAffineTransform(graph, element);
                Vec2d offset = DiagramGraphUtil.getOffset(graph, element);