mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 23:05:04 +01:00
temporal: handle negative positional values that somehow appear in older sessions
This commit is contained in:
parent
f112697be8
commit
d71b3100d8
1 changed files with 2 additions and 1 deletions
|
|
@ -873,7 +873,8 @@ timepos_t::string_to (std::string const & str)
|
|||
int64_t ticks;
|
||||
Beats beats;
|
||||
|
||||
if (isdigit (str[0])) {
|
||||
if (isdigit (str[0]) || (str[0] == '-' && str.length() > 1)) {
|
||||
|
||||
/* old school position format: we assume samples */
|
||||
std::stringstream ss (str);
|
||||
ss >> sm;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue