From 8ae0c1b36c48a6dfc5f8a4604b78fc0e49ddf7cc Mon Sep 17 00:00:00 2001 From: nick_m Date: Sun, 16 Oct 2016 03:50:14 +1100 Subject: Minor cleanup (don't set pulse twice in Region::set_position()). --- libs/ardour/region.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'libs/ardour/region.cc') diff --git a/libs/ardour/region.cc b/libs/ardour/region.cc index d602bc2e55..f67deb0b71 100644 --- a/libs/ardour/region.cc +++ b/libs/ardour/region.cc @@ -596,9 +596,8 @@ Region::set_position (framepos_t pos, int32_t sub_num) if (sub_num == 0) { set_position_internal (pos, true, 0); } else { - double beat = _session.tempo_map().exact_beat_at_frame (pos, sub_num); - _beat = beat; - _pulse = _session.tempo_map().exact_qn_at_frame (pos, sub_num) / 4.0; + _beat = _session.tempo_map().exact_beat_at_frame (pos, sub_num); + /* will set pulse accordingly */ set_position_internal (pos, false, sub_num); } -- cgit v1.2.3