diff options
author | Hans Fugal <hans@fugal.net> | 2006-08-12 21:49:20 +0000 |
---|---|---|
committer | Hans Fugal <hans@fugal.net> | 2006-08-12 21:49:20 +0000 |
commit | 57f7f71ce3c1acae5a50e903d2dd472743df8043 (patch) | |
tree | 6bb6ea6e16a17bbc5e96ecdc70d839ef7b3a955c /libs/pbd/undo.cc | |
parent | f995ac37860140c513e29c3bc58701474a7ed336 (diff) |
r316@gandalf: fugalh | 2006-08-11 17:06:48 -0600
Reconstitution. Comiples, untested.
git-svn-id: svn://localhost/ardour2/branches/undo@797 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/pbd/undo.cc')
-rw-r--r-- | libs/pbd/undo.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libs/pbd/undo.cc b/libs/pbd/undo.cc index 8d1b416c16..6f421de84e 100644 --- a/libs/pbd/undo.cc +++ b/libs/pbd/undo.cc @@ -23,6 +23,7 @@ #include <pbd/undo.h> #include <pbd/xml++.h> #include <string> +#include <sstream> using namespace std; using namespace sigc; @@ -87,6 +88,13 @@ UndoTransaction::redo () XMLNode &UndoTransaction::get_state() { XMLNode *node = new XMLNode ("UndoTransaction"); + stringstream ss; + ss << _timestamp.tv_sec; + node->add_property("tv_sec", ss.str()); + ss.str(""); + ss << _timestamp.tv_usec; + node->add_property("tv_usec", ss.str()); + node->add_property("name", _name); list<Command*>::iterator it; for (it=actions.begin(); it!=actions.end(); it++) |