mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-30 17:03:06 +01:00
revert scope change for a local variable
This commit is contained in:
parent
5a55f04b16
commit
db89647676
1 changed files with 2 additions and 2 deletions
|
|
@ -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));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue