mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 14:54:56 +01:00
do not sort lineset every time a coord is added; use RAII to create scope and sort at end
This commit is contained in:
parent
d4bca18108
commit
4f87506e5c
4 changed files with 29 additions and 9 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue