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;