summaryrefslogtreecommitdiff
path: root/gtk2_ardour
diff options
context:
space:
mode:
Diffstat (limited to 'gtk2_ardour')
-rw-r--r--gtk2_ardour/editor_drag.cc13
1 files changed, 7 insertions, 6 deletions
diff --git a/gtk2_ardour/editor_drag.cc b/gtk2_ardour/editor_drag.cc
index c1ece46fd8..f3cebf9a9c 100644
--- a/gtk2_ardour/editor_drag.cc
+++ b/gtk2_ardour/editor_drag.cc
@@ -3178,17 +3178,18 @@ MeterMarkerDrag::motion (GdkEvent* event, bool first_move)
TempoMap& map (_editor->session()->tempo_map());
/* get current state */
before_state = &map.get_state();
- /* remove the section while we drag it */
- //map.remove_meter (section, true);
}
_marker->hide();
}
framepos_t const pf = adjusted_current_frame (event);
-
+ double const baf = _editor->session()->tempo_map().beat_at_frame (pf);
_marker->set_position (pf);
- _editor->session()->tempo_map().gui_move_meter (_real_section, _marker->meter(), pf);
-
+ if (_marker->meter().position_lock_style() == MusicTime) {
+ _editor->session()->tempo_map().gui_move_meter (_real_section, _marker->meter(), baf);
+ } else {
+ _editor->session()->tempo_map().gui_move_meter (_real_section, _marker->meter(), pf);
+ }
show_verbose_cursor_time (pf);
}
@@ -3206,7 +3207,7 @@ MeterMarkerDrag::finished (GdkEvent* event, bool movement_occurred)
return;
}
- motion (event, false);
+ //motion (event, false);
Timecode::BBT_Time when;