Code

fix new deletion behavior when deleting up to next-to-last node in subpath
authorbuliabyak <buliabyak@users.sourceforge.net>
Wed, 2 Aug 2006 21:47:24 +0000 (21:47 +0000)
committerbuliabyak <buliabyak@users.sourceforge.net>
Wed, 2 Aug 2006 21:47:24 +0000 (21:47 +0000)
src/nodepath.cpp

index 84c990bff8a8cde3ebea9801c8f4a16cb3ea5287..7caaf8c49cbb6794e79dafd17fe672ef2d013291 100644 (file)
@@ -1935,7 +1935,7 @@ void sp_node_delete_preserve(GList *nodes_to_delete)
             data.push_back(sample_cursor->pos);
             for (Inkscape::NodePath::Node *curr=sample_cursor; curr; curr=curr->n.other) {
                 //just delete at the end of an open path
-                if (!sp->closed && curr->n.other == sp->last) {
+                if (!sp->closed && curr == sp->last) {
                     just_delete = true;
                     break;
                 }