projects
/
ardour.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix an issue with selection rects not being redrawn correctly
[ardour.git]
/
gtk2_ardour
/
time_axis_view.cc
diff --git
a/gtk2_ardour/time_axis_view.cc
b/gtk2_ardour/time_axis_view.cc
index 67e487f648462601876ebb61cc8667aea4a867e7..0ccc140f4fa41b43ec343d11864d3ed223e6edb3 100644
(file)
--- 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;
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
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->end_trim->hide();
}
- rect->rect->show ();
used_selection_rects.push_back (rect);
}
}
used_selection_rects.push_back (rect);
}
}