Re: [Inkscape-devel] your nodepath changes
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.
Thank you, that works well. Although I would prefer the node tool to still be able to handle one-node path, and only delete it when you switch away from the node tool. So that e.g. I can leave one node and "draw" from it by pressing shift-d and arrow keys repeatedly. But perhaps it's not worth the extra trouble, and at least it's safer as you implemented it.
_________________________________________________________________ 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...
participants (1)
-
bulia byak