summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libs/pbd3/pbd/xml++.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/pbd3/pbd/xml++.h b/libs/pbd3/pbd/xml++.h
index 2e89a701de..afb896e1d5 100644
--- a/libs/pbd3/pbd/xml++.h
+++ b/libs/pbd3/pbd/xml++.h
@@ -47,7 +47,7 @@ public:
bool initialized() const { return _initialized; };
XMLNode *root() const { return _root; };
- XMLNode *set_root(XMLNode *n) { return _root = n; };
+ XMLNode *set_root(XMLNode *n) { _initialized = true; return _root = n; };
const string & filename() const { return _filename; };
const string & set_filename(const string &fn) { return _filename = fn; };