diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2007-11-30 22:54:10 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2007-11-30 22:54:10 +0000 |
commit | 008299e8a1a1972674d7484a1e2364ee1f8bd2b0 (patch) | |
tree | dcbc14a64783e35dfa186e419f6dca188584a686 /libs/ardour/region.cc | |
parent | 6e235615c319f9694697eac9c52cf8f88fa6f904 (diff) |
fix issue with Region::adjust_to_sync(); enlarge key bindings editor
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@2732 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/region.cc')
-rw-r--r-- | libs/ardour/region.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libs/ardour/region.cc b/libs/ardour/region.cc index 7956f65bd9..e824eebaf0 100644 --- a/libs/ardour/region.cc +++ b/libs/ardour/region.cc @@ -698,14 +698,16 @@ Region::adjust_to_sync (nframes_t pos) { int sync_dir; nframes_t offset = sync_offset (sync_dir); + + // cerr << "adjusting pos = " << pos << " to sync at " << _sync_position << " offset = " << offset << " with dir = " << sync_dir << endl; if (sync_dir > 0) { if (max_frames - pos > offset) { - pos += offset; + pos -= offset; } } else { if (pos > offset) { - pos -= offset; + pos += offset; } else { pos = 0; } |