index 5f40e38088991561d984766643860713939b305f..a2919315fd741e8c18423cdca44a4b4d9e0c6b3d 100644 (file)
XML::Node *node = this->tracker->get(target);
unsigned int elementVersion = this->tracker->getVersion(node);
- if(node && version == (elementVersion + 1))
+ if(node)// && version == (elementVersion + 1))
{
this->tracker->incrementVersion(node);
this->tracker->addHistory(node, "text", text);
XML::Node *node = this->tracker->get(target);
unsigned int elementVersion = this->tracker->getVersion(node);
- if(node && version == (elementVersion + 1))
+ g_warning("got version %d",elementVersion);
+
+ if(node && attribute != "transform")// && version == (elementVersion + 1))
{
+ //g_warning("adding history %s %s",attribute.c_str(),value.c_str());
this->tracker->incrementVersion(node);
- this->tracker->addHistory(node, attribute, node->attribute(attribute.c_str()));
+ this->tracker->addHistory(node, attribute, value.c_str());
node->setAttribute(attribute.c_str(),value.c_str());
}
}