summaryrefslogtreecommitdiff
path: root/libs/pbd/stateful_diff_command.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2010-03-02 19:12:01 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2010-03-02 19:12:01 +0000
commit3a85e71031bc26d67d66db985da2159415f84fdb (patch)
tree1c7fbe946684325bcd8980e713e0268844032bae /libs/pbd/stateful_diff_command.cc
parent17088ee3ea5af1e6174b098bb5bcfdaec6ebf9b0 (diff)
(1) stop using mangled names in history state, use demangled ones instead (2) fix region split so that the generated regions have the right start points in the source(s)
git-svn-id: svn://localhost/ardour2/branches/3.0@6721 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/pbd/stateful_diff_command.cc')
-rw-r--r--libs/pbd/stateful_diff_command.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/pbd/stateful_diff_command.cc b/libs/pbd/stateful_diff_command.cc
index 0c7b8cc3f2..bfd9f33440 100644
--- a/libs/pbd/stateful_diff_command.cc
+++ b/libs/pbd/stateful_diff_command.cc
@@ -21,6 +21,7 @@
#include "pbd/stateful_diff_command.h"
#include "pbd/property_list.h"
+#include "pbd/demangle.h"
#include "i18n.h"
using namespace std;
@@ -105,7 +106,7 @@ StatefulDiffCommand::get_state ()
XMLNode* node = new XMLNode (X_("StatefulDiffCommand"));
node->add_property ("obj-id", s->id().to_s());
- node->add_property ("type-name", typeid(*s.get()).name());
+ node->add_property ("type-name", demangled_name (*s.get()));
XMLNode* before = new XMLNode (X_("Undo"));
XMLNode* after = new XMLNode (X_("Do"));