]> gerrit.simantics Code Review - simantics/platform.git/commitdiff
Fix RouteGraphNode styling 03/503/1
authorMarko Luukkainen <marko.luukkainen@vtt.fi>
Thu, 11 May 2017 09:27:35 +0000 (12:27 +0300)
committerMarko Luukkainen <marko.luukkainen@vtt.fi>
Thu, 11 May 2017 09:27:35 +0000 (12:27 +0300)
fixes #7209

Change-Id: I05ea45c1dd01cf9502970e9e99c1a278b2cd73a2

bundles/org.simantics.scenegraph/src/org/simantics/scenegraph/g2d/nodes/connection/RouteGraphNode.java

index 4650d2e13587c46cc85e3a2cccc3ba8470c0bda5..084c0d6582874a7f7cb64439a58e2495e4da12f8 100644 (file)
@@ -215,7 +215,7 @@ public class RouteGraphNode extends G2DNode implements ISelectionPainterNode, In
         if(dynamicColor != null || dynamicStroke != null) {
             BasicConnectionStyle baseStyle = (BasicConnectionStyle)tryGetStyle(baseRenderer);
             try {
-               Constructor<? extends BasicConnectionStyle> c = baseStyle.getClass().getConstructor(Color.class, Color.class, double.class, Stroke.class, Stroke.class, double.class);
+               Constructor<? extends BasicConnectionStyle> c = baseStyle.getClass().getConstructor(Color.class, Color.class, double.class, Stroke.class, Stroke.class, double.class, double.class);
                renderer = new StyledRouteGraphRenderer(c.newInstance(
                         dynamicColor != null ? dynamicColor : baseStyle.getLineColor(),
                                 baseStyle.getBranchPointColor(), baseStyle.getBranchPointRadius(),