fix in EN_deleteLink

when pipes are deleted via deletelink it also deletes comment of last link

Co-Authored-By: Pavlos Pavlou <pavlou.v.pavlos@ucy.ac.cy>
This commit is contained in:
mariosmsk
2019-08-08 15:50:19 +03:00
parent 0f3005e5ae
commit 1ce6901103

View File

@@ -3261,7 +3261,7 @@ int DLLEXPORT EN_deletelink(EN_Project p, int index, int actionCode)
// Remove link's comment // Remove link's comment
free(net->Link[index].Comment); free(net->Link[index].Comment);
net->Link[net->Nlinks].Comment = NULL; //net->Link[net->Nlinks].Comment = NULL;
// Shift position of higher entries in Link array down one // Shift position of higher entries in Link array down one
for (i = index; i <= net->Nlinks - 1; i++) for (i = index; i <= net->Nlinks - 1; i++)