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:
@@ -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++)
|
||||||
|
|||||||
Reference in New Issue
Block a user