Fix bug that causes crash when nothing is double-clicked
This commit is contained in:
parent
67a13cb179
commit
5ee49ddcf5
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user