13
0

patch changes: fix/supply missing code to position patch changes on session load

For one reason or another, the required computation from 6.9 had been
replaced with "x = 0".
This commit is contained in:
Paul Davis 2022-10-28 14:05:29 -06:00
parent f334db581a
commit a3795031da

View File

@ -2025,7 +2025,8 @@ MidiRegionView::step_sustain (Temporal::Beats beats)
void
MidiRegionView::add_canvas_patch_change (MidiModel::PatchChangePtr patch)
{
const double x = 0;
timecnt_t off (_region->source_beats_to_region_time (patch->time()), _region->position());
const double x = trackview.editor().duration_to_pixels (off);
double const height = midi_stream_view()->contents_height();
// CAIROCANVAS: active_channel info removed from PatcChange constructor