diff options
Diffstat (limited to 'libs/pbd/xml++.cc')
-rw-r--r-- | libs/pbd/xml++.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libs/pbd/xml++.cc b/libs/pbd/xml++.cc index 9643b5d3a8..a42923132b 100644 --- a/libs/pbd/xml++.cc +++ b/libs/pbd/xml++.cc @@ -475,6 +475,12 @@ XMLProperty::XMLProperty(const string &n, const string &v) : _name(n), _value(v) { + // Normalize property name (replace '_' with '-' as old session are inconsistent) + for (size_t i = 0; i < _name.length(); ++i) { + if (_name[i] == '_') { + _name[i] = '-'; + } + } } XMLProperty::~XMLProperty() |