On Sat, 2019-05-04 at 09:47 +0430, Vahid Bashiri via dia-list wrote:
I'm not completely sure what your saying here and GitLab would be a better venue, but here goes You seem to be concerned we are breaking out of a loop to soon, but I don't thing we do: [...] 698 list = dia->data->selected; 699 while (list != NULL) { <- I think this is the loop you think we are breaking out of, which would be bad 700 obj = (DiaObject *)list->data; 701 702 /* Break connections between this object and objects not selected: */ 703 for (i=0;i<obj->num_handles;i++) { <- But we are actually breaking out of this loop 704 ConnectionPoint *con_point; 705 con_point = obj->handles[i]->connected_to; 706 707 if ( con_point == NULL ) 708 break; /* Not connected */ <- Break works on both for and while loops 709 710 other_obj = con_point->object; <- If we didn't break this would SEGFAULT [...] 717 } [...] 750 list = g_list_next(list); 751 } [...] It's quite likely I've completely misunderstood your message though _______________________________________________dia-list mailing listdia-list gnome orghttps://nam02.safelinks.protection.outlook.com/?url="">FAQ athttps://nam02.safelinks.protection.outlook.com/?url="">Main page athttps://nam02.safelinks.protection.outlook.com/?url=""> -- Zander Brown <zbrown gnome org> GNOME Design Tooling (Icon Preview) Dia Diagram Editor |
Attachment:
signature.asc
Description: This is a digitally signed message part