From ef545882531390b813dfa677f42c6390e0584a90 Mon Sep 17 00:00:00 2001 From: Tim Young Date: Fri, 23 Feb 2018 18:27:50 -0600 Subject: [PATCH] Cannot drag a tree --- EduNetworkBuilder/Network.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/EduNetworkBuilder/Network.cs b/EduNetworkBuilder/Network.cs index 21bcd1f..d74abd5 100644 --- a/EduNetworkBuilder/Network.cs +++ b/EduNetworkBuilder/Network.cs @@ -527,6 +527,7 @@ namespace EduNetworkBuilder if (tItem is NetworkDevice) { tDevice = (NetworkDevice)tItem; + if (tDevice.GetNetType() == NetworkComponentType.tree) continue; //Cannot select trees int tsize = tDevice.Size; tPoint = tDevice.myLocation(); if (tPoint.X + tsize >= area.X && tPoint.Y +tsize >= area.Y)