diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2017-01-25 16:45:38 +0100 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2017-01-25 16:47:42 +0100 |
commit | fa1a7ae9b91d0321b71b3de4f720a393d827cd9c (patch) | |
tree | 62a931b4287948d8f9789cda69ba0f3f90b2045f /gtk2_ardour/time_axis_view.cc | |
parent | cce1c58198daf4d09b9fc916a257332813033a9d (diff) |
fix an issue with selection rects not being redrawn correctly
Diffstat (limited to 'gtk2_ardour/time_axis_view.cc')
-rw-r--r-- | gtk2_ardour/time_axis_view.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gtk2_ardour/time_axis_view.cc b/gtk2_ardour/time_axis_view.cc index 67e487f648..0ccc140f4f 100644 --- a/gtk2_ardour/time_axis_view.cc +++ b/gtk2_ardour/time_axis_view.cc @@ -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); } } |