unconditionally set region quarter note in set_position().
authornick_m <mainsbridge@gmail.com>
Wed, 15 Feb 2017 11:55:51 +0000 (22:55 +1100)
committernick_m <mainsbridge@gmail.com>
Wed, 15 Feb 2017 11:55:51 +0000 (22:55 +1100)
- this fixes incorrect timing of new regions recorded
  before the music origin.

libs/ardour/region.cc

index 4cb5ab4dcbefca767173ebd83ea41d986fefb9ed..8640b53a6e4cd3f798ea2ea6cab0b2e561458fd3 100644 (file)
@@ -610,9 +610,9 @@ Region::set_position (framepos_t pos, int32_t sub_num)
        } else {
                if (!_session.loading()) {
                        _beat = _session.tempo_map().exact_beat_at_frame (pos, sub_num);
+                       _quarter_note = _session.tempo_map().quarter_note_at_beat (_beat);
                }
 
-               /* will set quarter note accordingly */
                set_position_internal (pos, false, sub_num);
        }