Re: [Inkscape-devel] your nodepath changes
create a path
f2
select all nodes
del
This creates a segfault, (apparently) because the nodepath was being destroyed more than once.
I remember doing exactly that, and it did not segfault, after I added the delete_selection. In fact that was _why_ I added delete_selection - previously this operation left a ghost path with no nodes which was impossible to pick or delete. So the segfault problem may have appeared more recently and not in my code (although I am not 100% sure).
_________________________________________________________________ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus&pgmarket=en-ca&RU=http%3a%2...
bulia byak wrote:
create a path
f2
select all nodes
del
This creates a segfault, (apparently) because the nodepath was being destroyed more than once.
I remember doing exactly that, and it did not segfault, after I added the delete_selection. In fact that was _why_ I added delete_selection
- previously this operation left a ghost path with no nodes which was
impossible to pick or delete. So the segfault problem may have appeared more recently and not in my code (although I am not 100% sure).
Found it! Yayy!
Added a pointer from the nodepath to the node-context that created it (if any), so that the node-context's nodepath field can be set to NULL when the nodepath is killed with nodepath_destroy(). Now the node-context can know that the nodepath is gone, and not try to use it anymore.
Valgrind -is- good. Valgrind is my friend! ;-)
Bob
participants (2)
-
Bob Jamison
-
bulia byak