Code

Fixed a crash when changing blur of filtered object after duplicating it
[inkscape.git] / src / jabber_whiteboard / inkboard-node.cpp
index a2919315fd741e8c18423cdca44a4b4d9e0c6b3d..343b6c4c1216815fcdcd61851e726584bcd1a994 100644 (file)
@@ -81,14 +81,13 @@ InkboardDocument::changeConfigure(Glib::ustring target, unsigned int version,
     XML::Node *node = this->tracker->get(target);
     unsigned int elementVersion = this->tracker->getVersion(node);
 
-    g_warning("got version %d",elementVersion);
-
-    if(node && attribute != "transform")// && version == (elementVersion + 1))
+    if(node)// && version == (elementVersion + 1))
     {
-        //g_warning("adding history %s %s",attribute.c_str(),value.c_str());
         this->tracker->incrementVersion(node);
         this->tracker->addHistory(node, attribute, value.c_str());
-        node->setAttribute(attribute.c_str(),value.c_str());
+
+        if(attribute != "transform")
+            node->setAttribute(attribute.c_str(),value.c_str());
     }
 }