From 9da7a15c607463c1ce8b83424ca141b73e436b52 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Wed, 5 Nov 2014 17:12:18 -0500 Subject: [PATCH] streamview no longer outlines any part of its canvas rect (we leave that to time axis view separators) Also remove commented "- 1.0" adjustments that were already commented --- gtk2_ardour/streamview.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/gtk2_ardour/streamview.cc b/gtk2_ardour/streamview.cc index 5d2b58a5cd..850052163e 100644 --- a/gtk2_ardour/streamview.cc +++ b/gtk2_ardour/streamview.cc @@ -71,9 +71,8 @@ StreamView::StreamView (RouteTimeAxisView& tv, ArdourCanvas::Container* canvas_g canvas_rect = new ArdourCanvas::Rectangle (_canvas_group); CANVAS_DEBUG_NAME (canvas_rect, string_compose ("SV canvas rectangle %1", _trackview.name())); - canvas_rect->set (ArdourCanvas::Rect (0, 0, ArdourCanvas::COORD_MAX, tv.current_height () -1)); - canvas_rect->set_outline_what (ArdourCanvas::Rectangle::BOTTOM); // bottom separator - canvas_rect->set_outline_color (RGBA_TO_UINT (0, 0, 0, 255)); + canvas_rect->set (ArdourCanvas::Rect (0, 0, ArdourCanvas::COORD_MAX, tv.current_height ())); + canvas_rect->set_outline_what (ArdourCanvas::Rectangle::What (0)); canvas_rect->set_fill (true); canvas_rect->Event.connect (sigc::bind (sigc::mem_fun (_trackview.editor(), &PublicEditor::canvas_stream_view_event), canvas_rect, &_trackview)); @@ -115,16 +114,17 @@ int StreamView::set_height (double h) { /* limit the values to something sane-ish */ + if (h < 10.0 || h > 1000.0) { return -1; } - if (canvas_rect->y1() == h /* -1 */) { + if (canvas_rect->y1() == h) { return 0; } height = h; - canvas_rect->set_y1 (height /* -1 */); // share the separator with outline + canvas_rect->set_y1 (height); update_contents_height (); return 0;