mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 07:14:56 +01:00
fix an issue with selection rects not being redrawn correctly
This commit is contained in:
parent
cce1c58198
commit
fa1a7ae9b9
1 changed files with 5 additions and 1 deletions
|
|
@ -864,6 +864,11 @@ TimeAxisView::show_selection (TimeSelection& ts)
|
|||
x2 = _editor.sample_to_pixel (start + cnt - 1);
|
||||
y2 = current_height() - 1;
|
||||
|
||||
/* rect must be visible for the change in its bounding box to
|
||||
cause a redraw.
|
||||
*/
|
||||
|
||||
rect->rect->show ();
|
||||
rect->rect->set (ArdourCanvas::Rect (x1, 0, x2, y2));
|
||||
|
||||
// trim boxes are at the top for selections
|
||||
|
|
@ -879,7 +884,6 @@ TimeAxisView::show_selection (TimeSelection& ts)
|
|||
rect->end_trim->hide();
|
||||
}
|
||||
|
||||
rect->rect->show ();
|
||||
used_selection_rects.push_back (rect);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue