Fix bug that causes crash when nothing is double-clicked

This commit is contained in:
Tim Young 2015-09-06 09:15:39 -05:00
parent 67a13cb179
commit 5ee49ddcf5

View File

@ -628,6 +628,7 @@ namespace EduNetworkBuilder
private void pbNetworkView_Edit_Click(object sender, EventArgs e)
{
if (ItemClickedOn == null) return;
if (ItemClickedOn.GetNetType() == NetworkComponentType.microwave || ItemClickedOn.GetNetType() == NetworkComponentType.fluorescent)
return;
if (ItemClickedOn != null)