13
0

temporal: handle negative positional values that somehow appear in older sessions

This commit is contained in:
Paul Davis 2021-11-22 10:28:13 -07:00
parent f112697be8
commit d71b3100d8

View File

@ -873,7 +873,8 @@ timepos_t::string_to (std::string const & str)
int64_t ticks; int64_t ticks;
Beats beats; Beats beats;
if (isdigit (str[0])) { if (isdigit (str[0]) || (str[0] == '-' && str.length() > 1)) {
/* old school position format: we assume samples */ /* old school position format: we assume samples */
std::stringstream ss (str); std::stringstream ss (str);
ss >> sm; ss >> sm;