From 38f5546327af44b497f6f94161cd9077b39eec76 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Wed, 11 Dec 2024 08:33:51 -0700 Subject: [PATCH] actually implement ::reposition_and_zoom() for midi cue editor --- gtk2_ardour/cue_editor.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gtk2_ardour/cue_editor.cc b/gtk2_ardour/cue_editor.cc index c8b8538a49..0777e110fb 100644 --- a/gtk2_ardour/cue_editor.cc +++ b/gtk2_ardour/cue_editor.cc @@ -168,8 +168,13 @@ CueEditor::get_current_zoom () const } void -CueEditor::reposition_and_zoom (samplepos_t, double) +CueEditor::reposition_and_zoom (samplepos_t pos, double spp) { + set_samples_per_pixel (spp); + + horizontal_adjustment.set_value (sample_to_pixel (pos)); + /* correct rounding errors */ + _leftmost_sample = pos; } void