Code

Revert undo LPE paths fix; crashed on linux :(
authorjohanengelen <johanengelen@users.sourceforge.net>
Tue, 23 Oct 2007 18:36:20 +0000 (18:36 +0000)
committerjohanengelen <johanengelen@users.sourceforge.net>
Tue, 23 Oct 2007 18:36:20 +0000 (18:36 +0000)
src/shape-editor.cpp

index 00e7c61b1dc223a13db66fb02ecab01cc4fafddf..ed946d95f32cd92c4827616e5f526cc66cff3493 100644 (file)
@@ -142,7 +142,9 @@ static void shapeeditor_event_attr_changed(Inkscape::XML::Node *repr, gchar cons
     g_assert(data);
     ShapeEditor *sh = ((ShapeEditor *) data);
 
-    if ( sh->has_nodepath() || sh->has_knotholder() )
+    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())
     {
         changed = !sh->has_local_change(); 
         sh->decrement_local_change();