From dc11048262191fb2c0ea69c98d2982b79a973e16 Mon Sep 17 00:00:00 2001 From: Tim Young Date: Fri, 23 Feb 2018 18:00:18 -0600 Subject: [PATCH] Cannot edit a tree --- EduNetworkBuilder/Network.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/EduNetworkBuilder/Network.cs b/EduNetworkBuilder/Network.cs index 3d828ef..21bcd1f 100644 --- a/EduNetworkBuilder/Network.cs +++ b/EduNetworkBuilder/Network.cs @@ -495,8 +495,8 @@ namespace EduNetworkBuilder if (tItem.GetType().ToString() == "EduNetworkBuilder.NetworkDevice") { tDevice = (NetworkDevice)tItem; - if (tDevice.AtLocation(NetworkLocation)) - return tDevice; + if (tDevice.AtLocation(NetworkLocation) && tDevice.GetNetType() != NetworkComponentType.tree) + return tDevice; //We do not return trees. Trees cannot be edited } } return null;