revert scope change for a local variable

This commit is contained in:
Paul Davis 2024-01-10 15:16:39 -07:00
parent 705b9d0ab3
commit 3be39c50e1
1 changed files with 2 additions and 2 deletions

View File

@ -1599,7 +1599,7 @@ MidiView::update_sustained (Note* ev, bool update_ghost_regions)
const double y0 = 1 + floor(note_to_y(note->note()));
double y1;
samplepos_t note_end_samples;
if (note->length() == Temporal::Beats()) {
/* special case actual zero-length notes */
@ -1616,7 +1616,7 @@ MidiView::update_sustained (Note* ev, bool update_ghost_regions)
note_end = timepos_t (source_end);
}
note_end_samples = _midi_region->position().distance ((session_source_start + note_end)).samples();
const samplepos_t note_end_samples = _midi_region->position().distance ((session_source_start + note_end)).samples();
x1 = std::max(1., _editing_context.sample_to_pixel (note_end_samples));