From d7ccec01c6d0a8f056b257e90885671b034d6755 Mon Sep 17 00:00:00 2001 From: "Johan B. C. Engelen" Date: Wed, 17 Oct 2007 18:51:28 +0000 Subject: Fix undo bug when on-canvas editing LPE path parameter! (bzr r3924) --- src/shape-editor.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/shape-editor.cpp') diff --git a/src/shape-editor.cpp b/src/shape-editor.cpp index f029aab0a..d0dbb8937 100644 --- a/src/shape-editor.cpp +++ b/src/shape-editor.cpp @@ -144,9 +144,12 @@ static void shapeeditor_event_attr_changed(Inkscape::XML::Node *repr, gchar cons item = sh->get_item(); - if ( - ((sh->has_nodepath()) && (!strcmp(name, "d") || !strcmp(name, "sodipodi:nodetypes"))) // With paths, we only need to act if one of the path-affecting attributes has changed. - || sh->has_knotholder()) { + if ( ( (sh->has_nodepath()) + && ( !strcmp(name, "d") // With paths, we only need to act if one of the path-affecting attributes has changed. + || !strcmp(name, "sodipodi:nodetypes") + || !strcmp(name, "inkscape:original-d") ) ) + || sh->has_knotholder() ) + { changed = !sh->has_local_change(); sh->decrement_local_change(); } -- cgit v1.2.3