mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 06:44:57 +01:00
in MidiView::view_changed(), don't update existing events unless zoom has changed
This commit is contained in:
parent
b14859fc46
commit
e2cea58876
1 changed files with 6 additions and 3 deletions
|
|
@ -1323,9 +1323,12 @@ MidiView::view_changed()
|
|||
|
||||
EC_LOCAL_TEMPO_SCOPE_ARG (_editing_context);
|
||||
|
||||
for (auto & [ note, gui ] : _events) {
|
||||
if (note->end_time() != std::numeric_limits<Temporal::Beats>::max()) {
|
||||
update_note (gui);
|
||||
const samplecnt_t zoom = _editing_context.get_current_zoom();
|
||||
if (zoom != _last_display_zoom) {
|
||||
for (auto & [ note, gui ] : _events) {
|
||||
if (note->end_time() != std::numeric_limits<Temporal::Beats>::max()) {
|
||||
update_note (gui);
|
||||
}
|
||||
}
|
||||
}
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue