summaryrefslogtreecommitdiff
path: root/libs/ardour/session_state.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2016-05-07 01:11:28 +0200
committerRobin Gareus <robin@gareus.org>2016-05-07 01:11:28 +0200
commit2b7a047e92bc5ebe3287860ff9c9f2fb0acb193c (patch)
tree2d8bc0ae88c0d07f42e021441866eb7c52ddfe72 /libs/ardour/session_state.cc
parent86c76656cca02f74f5987cf54c0df4423dc90656 (diff)
Add a global state localeguard (and one for route templates)
Diffstat (limited to 'libs/ardour/session_state.cc')
-rw-r--r--libs/ardour/session_state.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/ardour/session_state.cc b/libs/ardour/session_state.cc
index 53b9d0fd3e..ca94008f28 100644
--- a/libs/ardour/session_state.cc
+++ b/libs/ardour/session_state.cc
@@ -1035,6 +1035,7 @@ Session::get_template()
XMLNode&
Session::state (bool full_state)
{
+ LocaleGuard lg ();
XMLNode* node = new XMLNode("Session");
XMLNode* child;
@@ -1296,6 +1297,7 @@ Session::get_control_protocol_state ()
int
Session::set_state (const XMLNode& node, int version)
{
+ LocaleGuard lg ();
XMLNodeList nlist;
XMLNode* child;
XMLProperty const * prop;