Re: [Inkscape-devel] your nodepath changes
Still segfaults for one-node path:
Got that one, too.
The segfault is fixed, but it still leaves a ghost path with empty d="" attribute which is impossible to delete except in the XML editor. Could you please change it so that if a single node remains, the path object is deleted when you switch away from node tool? This is consistent because if you delete all nodes but one in a subpath, then on the next entry into node tool, that subpath is gone. So I think we should do the same for the entire path, too.
_________________________________________________________________ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=dept/bcomm&pgmarket=en-ca&RU=http%3a%2f%2f...
bulia byak wrote:
Still segfaults for one-node path:
Got that one, too.
The segfault is fixed, but it still leaves a ghost path with empty d="" attribute which is impossible to delete except in the XML editor. Could you please change it so that if a single node remains, the path object is deleted when you switch away from node tool? This is consistent because if you delete all nodes but one in a subpath, then on the next entry into node tool, that subpath is gone. So I think we should do the same for the entire path, too.
Got it. Added a method to return the node count of a nodepath. Now when a node delete leaves <2 nodes, it considered the same as if the whole thing was deleted.
Tried both node_delete() and node_delete_segment() with <2, 2, and >2 nodes. Seems to work OK. Looked in the XML and didn't see any phantoms.
Bob
participants (2)
-
Bob Jamison
-
bulia byak