From: Jussi Koskela Date: Fri, 26 Jun 2020 06:46:34 +0000 (+0300) Subject: Fixed the number of parameters for DIA.SCLTextGridStyle_texts function X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=529235814a112991780e4b1839a7f1ec4c056bf2;p=simantics%2Fplatform.git Fixed the number of parameters for DIA.SCLTextGridStyle_texts function Change-Id: I9d64b8d3517b3edf39b8278166f748c72dc22baf --- diff --git a/bundles/org.simantics.diagram/src/org/simantics/diagram/profile/SCLTextGridStyle.java b/bundles/org.simantics.diagram/src/org/simantics/diagram/profile/SCLTextGridStyle.java index 16b205388..3a6b688a3 100644 --- a/bundles/org.simantics.diagram/src/org/simantics/diagram/profile/SCLTextGridStyle.java +++ b/bundles/org.simantics.diagram/src/org/simantics/diagram/profile/SCLTextGridStyle.java @@ -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 function = styleVariable.getPossiblePropertyValue(graph, DIA.SCLTextGridStyle_texts); - Tuple3 result = Simantics.applySCLRead(graph, function, moduleVariable); + Function1 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);