diff options
Diffstat (limited to 'libs/ardour/location.cc')
-rw-r--r-- | libs/ardour/location.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libs/ardour/location.cc b/libs/ardour/location.cc index 6aa2f8faed..155ef3667c 100644 --- a/libs/ardour/location.cc +++ b/libs/ardour/location.cc @@ -151,8 +151,10 @@ Location::set_end (nframes64_t e) int Location::set (nframes64_t start, nframes64_t end) { - set_start (start); - set_end (end); + int const s = set_start (start); + int const e = set_end (end); + + return (s == 0 && e == 0) ? 0 : -1; } int |