diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2011-03-12 20:23:56 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2011-03-12 20:23:56 +0000 |
commit | 58ce6c2bb736d4e096bbeca624fd292fc858c8b0 (patch) | |
tree | 3418f78e523929d4576f13d2eea208cb8ae20fc7 /libs/pbd/xml++.cc | |
parent | ac38847d867ada9590324227385d867bb04be54a (diff) |
a better fix fpr that wierd XMLProperty botch
git-svn-id: svn://localhost/ardour2/branches/3.0@9128 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/pbd/xml++.cc')
-rw-r--r-- | libs/pbd/xml++.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/libs/pbd/xml++.cc b/libs/pbd/xml++.cc index dbed9d1917..dc27b8b1a5 100644 --- a/libs/pbd/xml++.cc +++ b/libs/pbd/xml++.cc @@ -377,8 +377,11 @@ XMLProperty* XMLNode::add_property(const char* n, const string& v) { string ns(n); - if (_propmap.find(ns) != _propmap.end()) { - remove_property(ns); + map<string,XMLProperty*>::iterator iter; + + if ((iter = _propmap.find(ns)) != _propmap.end()) { + iter->second->set_value (v); + return iter->second; } XMLProperty* tmp = new XMLProperty(ns, v); |