From 9f18f45e7d0b3bc1ca80a15a9d4c8fe8354f49ec Mon Sep 17 00:00:00 2001 From: Tuukka Lehtonen Date: Tue, 4 Sep 2018 12:16:51 +0300 Subject: [PATCH] Avoid duplicate validity checks when injecting layer listener gitlab #8 Change-Id: I86f31fc6a640c69be5dc9cce7784ba8903abbad6 (cherry picked from commit e1b15332f361872748ec925036add97fd243fd1c) --- .../network/ui/adapters/DistrictDiagramClassAdapter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.simantics.district.network.ui/src/org/simantics/district/network/ui/adapters/DistrictDiagramClassAdapter.java b/org.simantics.district.network.ui/src/org/simantics/district/network/ui/adapters/DistrictDiagramClassAdapter.java index fe3ed935..171d31e6 100644 --- a/org.simantics.district.network.ui/src/org/simantics/district/network/ui/adapters/DistrictDiagramClassAdapter.java +++ b/org.simantics.district.network.ui/src/org/simantics/district/network/ui/adapters/DistrictDiagramClassAdapter.java @@ -82,7 +82,7 @@ public class DistrictDiagramClassAdapter extends DiagramClassAdapter { @Override public ElementClass substitute(IDiagram d, ElementClass ec) { - return ec.newClassWith(LAYER_LISTENER); + return ec.newClassWith(false, LAYER_LISTENER); } } -- 2.47.1