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:
parent
19f9158dc6
commit
baa1bff5ec
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user