do not sort lineset every time a coord is added; use RAII to create scope and sort at end

This commit is contained in:
Paul Davis 2023-04-09 14:34:22 -06:00
parent d4bca18108
commit 4f87506e5c
4 changed files with 29 additions and 9 deletions

View file

@ -339,7 +339,7 @@ MidiStreamView::draw_note_lines()
double prev_y = .5;
uint32_t color;
_note_lines->clear();
ArdourCanvas::LineSet::ResetRAII lr (*_note_lines);
if (child_height() < 140 || note_height() < 3) {
/* track is too small for note lines, or there are too many */