fix up dimensions of ghostregion colored rect
authorPaul Davis <paul@linuxaudiosystems.com>
Fri, 7 Nov 2014 17:57:22 +0000 (12:57 -0500)
committerPaul Davis <paul@linuxaudiosystems.com>
Fri, 7 Nov 2014 17:58:56 +0000 (12:58 -0500)
gtk2_ardour/ghostregion.cc

index c2bc30600f1f2922262d99bbdbd53eeaaf177203..4c0924caf8eb77b1510cce80c88cfd506cb66e89 100644 (file)
@@ -49,9 +49,9 @@ GhostRegion::GhostRegion (ArdourCanvas::Container* parent, TimeAxisView& tv, Tim
        base_rect = new ArdourCanvas::TimeRectangle (group);
        CANVAS_DEBUG_NAME (base_rect, "ghost region rect");
        base_rect->set_x0 (0);
-       base_rect->set_y0 (0.0);
-       base_rect->set_y1 (trackview.current_height() - 1.0);
-       base_rect->set_outline_what (ArdourCanvas::Rectangle::What (0));
+       base_rect->set_y0 (1.0);
+       base_rect->set_y1 (trackview.current_height());
+       base_rect->set_outline (false);
 
        if (!is_automation_ghost()) {
                base_rect->hide();
@@ -87,7 +87,6 @@ void
 GhostRegion::set_colors ()
 {
        if (is_automation_ghost()) {
-               base_rect->set_outline_color (ARDOUR_UI::config()->get_GhostTrackBase());
                base_rect->set_fill_color (ARDOUR_UI::config()->get_GhostTrackBase());
        }
 }