diff options
author | Tim Mayberry <mojofunk@gmail.com> | 2016-09-27 19:57:26 +1000 |
---|---|---|
committer | Tim Mayberry <mojofunk@gmail.com> | 2017-04-19 09:37:01 +1000 |
commit | baa1bff5ec56f3866987b0c0c42f580b7075807e (patch) | |
tree | bc5ae8956a8f568f21ff6da894446c1dc907a74c /libs/ardour/lv2_plugin.cc | |
parent | 19f9158dc64eae8d0fc13c63ffbc6c9ebac080e8 (diff) |
Use PBD::to_string to set state-dir property in LV2Plugin
To prevent issues with numeric grouping with formatting used by string_compose
template/stringstream when global C++ locale != "C"
Diffstat (limited to 'libs/ardour/lv2_plugin.cc')
-rw-r--r-- | libs/ardour/lv2_plugin.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/ardour/lv2_plugin.cc b/libs/ardour/lv2_plugin.cc index c48a2a261b..466540b22e 100644 --- a/libs/ardour/lv2_plugin.cc +++ b/libs/ardour/lv2_plugin.cc @@ -1366,7 +1366,7 @@ LV2Plugin::add_state(XMLNode* root) const saved_state = _state_version; } - root->set_property("state-dir", string_compose("state%1", saved_state)); + root->set_property("state-dir", string("state") + PBD::to_string (saved_state)); } } |