From 3a85e71031bc26d67d66db985da2159415f84fdb Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Tue, 2 Mar 2010 19:12:01 +0000 Subject: (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 --- libs/pbd/stateful_diff_command.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libs/pbd/stateful_diff_command.cc') 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")); -- cgit v1.2.3