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"
This commit is contained in:
Tim Mayberry 2016-09-27 19:57:26 +10:00
parent 19f9158dc6
commit baa1bff5ec

View File

@ -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));
}
}