summaryrefslogtreecommitdiff
path: root/libs/ardour/region.cc
diff options
context:
space:
mode:
authornick_m <mainsbridge@gmail.com>2016-05-25 04:09:15 +1000
committernick_m <mainsbridge@gmail.com>2016-05-27 23:38:17 +1000
commit533e5c40697e34af467b309849119596992f0f69 (patch)
treeb4abe43870d7d8057dd91dac4f5384199eddc99c /libs/ardour/region.cc
parent2a8104f2f8e8fc7c800fd35c788c48eca09d6fdc (diff)
Rwbi ramps - midi regions resize when tempo map changed.
Diffstat (limited to 'libs/ardour/region.cc')
-rw-r--r--libs/ardour/region.cc11
1 files changed, 7 insertions, 4 deletions
diff --git a/libs/ardour/region.cc b/libs/ardour/region.cc
index 0ae709d99e..1b9793313d 100644
--- a/libs/ardour/region.cc
+++ b/libs/ardour/region.cc
@@ -546,21 +546,24 @@ Region::set_position_lock_style (PositionLockStyle ps)
}
void
-Region::update_after_tempo_map_change ()
+Region::update_after_tempo_map_change (bool send)
{
boost::shared_ptr<Playlist> pl (playlist());
if (!pl || _position_lock_style != MusicTime) {
return;
}
- TempoMap& map (_session.tempo_map());
- framepos_t pos = map.frame_at_beat (_beat);
+
+ const framepos_t pos = _session.tempo_map().frame_at_beat (_beat);
set_position_internal (pos, false);
/* do this even if the position is the same. this helps out
a GUI that has moved its representation already.
*/
- send_change (Properties::position);
+
+ if (send) {
+ send_change (Properties::position);
+ }
}
void