From 04e58fe9762351eb0b6b41db7a80a8c2b4240a9b Mon Sep 17 00:00:00 2001 From: Jussi Koskela Date: Fri, 26 Jun 2020 09:46:34 +0300 Subject: [PATCH] Fixed the number of parameters for DIA.SCLTextGridStyle_texts function Change-Id: I9d64b8d3517b3edf39b8278166f748c72dc22baf --- .../src/org/simantics/diagram/profile/SCLTextGridStyle.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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); -- 2.47.1