From: Tuukka Lehtonen Date: Mon, 3 Jul 2017 15:39:32 +0000 (+0300) Subject: RouteGraphUtils.readConnectionStyle returns default value if necessary X-Git-Tag: v1.31.0~281 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=416ebcbe9ab63a80636d90445f3ef727b4426f90;p=simantics%2Fplatform.git RouteGraphUtils.readConnectionStyle returns default value if necessary Fixed problems in casting to BasicConnectionStyle introduced in commit e571f799. refs #7323 Change-Id: I22a74322c44764da6fba61d6af5c16a4f71c712e --- diff --git a/bundles/org.simantics.diagram/src/org/simantics/diagram/adapter/RouteGraphUtils.java b/bundles/org.simantics.diagram/src/org/simantics/diagram/adapter/RouteGraphUtils.java index 1b7376f96..054db497d 100644 --- a/bundles/org.simantics.diagram/src/org/simantics/diagram/adapter/RouteGraphUtils.java +++ b/bundles/org.simantics.diagram/src/org/simantics/diagram/adapter/RouteGraphUtils.java @@ -524,7 +524,7 @@ public class RouteGraphUtils { } } - private static final ConnectionStyle DEFAULT_CONNECTION_STYLE = new ExampleConnectionStyle(); + private static final ConnectionStyle DEFAULT_CONNECTION_STYLE = new BasicConnectionStyle(Color.BLACK, Color.BLACK, 3, ExampleConnectionStyle.SOLID, ExampleConnectionStyle.SOLID, 8); /** * @param graph