summaryrefslogtreecommitdiffstats
path: root/src/shape-editor.cpp
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2007-10-17 18:51:28 +0000
committerjohanengelen <johanengelen@users.sourceforge.net>2007-10-17 18:51:28 +0000
commitd7ccec01c6d0a8f056b257e90885671b034d6755 (patch)
tree389ac059d7b773dc8ad6ff2983bf0f7eeb575831 /src/shape-editor.cpp
parent17.10.2007 - Josef Vybiral (cornelius) (diff)
downloadinkscape-d7ccec01c6d0a8f056b257e90885671b034d6755.tar.gz
inkscape-d7ccec01c6d0a8f056b257e90885671b034d6755.zip
Fix undo bug when on-canvas editing LPE path parameter!
(bzr r3924)
Diffstat (limited to 'src/shape-editor.cpp')
-rw-r--r--src/shape-editor.cpp9
1 files changed, 6 insertions, 3 deletions
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();
}