Cannot drag a tree

This commit is contained in:
Tim Young 2018-02-23 18:27:50 -06:00
parent dc11048262
commit ef54588253

View File

@ -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)