Use correct property names in PBD::Undo class
authorTim Mayberry <mojofunk@gmail.com>
Thu, 20 Apr 2017 00:55:31 +0000 (10:55 +1000)
committerTim Mayberry <mojofunk@gmail.com>
Fri, 21 Apr 2017 02:46:04 +0000 (12:46 +1000)
These have been "normalized" in XMLProperty ctor for many years, so this does
not change the Session format.

libs/pbd/undo.cc

index d816afa28ba83bcfe83a192d81fbd21626d41555..88b3c4ead5b0b2b40f3e1eae7606a44cf45e4e9c 100644 (file)
@@ -135,8 +135,8 @@ UndoTransaction::redo ()
 XMLNode &UndoTransaction::get_state()
 {
     XMLNode *node = new XMLNode ("UndoTransaction");
-    node->set_property("tv_sec", (int64_t)_timestamp.tv_sec);
-    node->set_property("tv_usec", (int64_t)_timestamp.tv_usec);
+    node->set_property("tv-sec", (int64_t)_timestamp.tv_sec);
+    node->set_property("tv-usec", (int64_t)_timestamp.tv_usec);
     node->set_property("name", _name);
 
     list<Command*>::iterator it;