]> gerrit.simantics Code Review - simantics/district.git/commitdiff
Avoid duplicate validity checks when injecting layer listener 98/2098/1
authorTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Tue, 4 Sep 2018 09:16:51 +0000 (12:16 +0300)
committerTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Tue, 4 Sep 2018 09:31:08 +0000 (09:31 +0000)
gitlab #8

Change-Id: I86f31fc6a640c69be5dc9cce7784ba8903abbad6
(cherry picked from commit e1b15332f361872748ec925036add97fd243fd1c)

org.simantics.district.network.ui/src/org/simantics/district/network/ui/adapters/DistrictDiagramClassAdapter.java

index fe3ed93517a56ae90cb86e37dd16b6a5d6d37285..171d31e671c81640ff84ddb1c4364a820f827666 100644 (file)
@@ -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);
         }
 
     }