summaryrefslogtreecommitdiff
path: root/gtk2_ardour/time_axis_view.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2014-06-27 10:18:11 -0400
committerPaul Davis <paul@linuxaudiosystems.com>2014-06-27 10:18:11 -0400
commit19ff3536657b2f0897df3bf5edd13d94474e7c08 (patch)
treeaf9360a50be50016383a9b300351d535d699828e /gtk2_ardour/time_axis_view.cc
parent6b835af842ddc224efdd94cccd1d54a9b6608b27 (diff)
fix edges of selection rects in time axis views to lie correctly within bounds of the time axis view
Diffstat (limited to 'gtk2_ardour/time_axis_view.cc')
-rw-r--r--gtk2_ardour/time_axis_view.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk2_ardour/time_axis_view.cc b/gtk2_ardour/time_axis_view.cc
index 15a70304f6..9cc691ad08 100644
--- a/gtk2_ardour/time_axis_view.cc
+++ b/gtk2_ardour/time_axis_view.cc
@@ -847,9 +847,9 @@ TimeAxisView::show_selection (TimeSelection& ts)
x1 = _editor.sample_to_pixel (start);
x2 = _editor.sample_to_pixel (start + cnt - 1);
- y2 = current_height();
+ y2 = current_height() - 1;
- rect->rect->set (ArdourCanvas::Rect (x1, 1, x2, y2));
+ rect->rect->set (ArdourCanvas::Rect (x1, 0, x2, y2));
// trim boxes are at the top for selections