From 416ebcbe9ab63a80636d90445f3ef727b4426f90 Mon Sep 17 00:00:00 2001 From: Tuukka Lehtonen Date: Mon, 3 Jul 2017 18:39:32 +0300 Subject: [PATCH] RouteGraphUtils.readConnectionStyle returns default value if necessary Fixed problems in casting to BasicConnectionStyle introduced in commit e571f799. refs #7323 Change-Id: I22a74322c44764da6fba61d6af5c16a4f71c712e --- .../src/org/simantics/diagram/adapter/RouteGraphUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.47.1