temporal: handle negative positional values that somehow appear in older sessions
This commit is contained in:
parent
f112697be8
commit
d71b3100d8
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user