put back bottom line of region views if name highlight is not shown.
authorPaul Davis <paul@linuxaudiosystems.com>
Fri, 18 Apr 2014 09:07:20 +0000 (05:07 -0400)
committerPaul Davis <paul@linuxaudiosystems.com>
Fri, 18 Apr 2014 09:08:17 +0000 (05:08 -0400)
Also remove redundant line that replicated the one we modified.

gtk2_ardour/time_axis_view_item.cc

index 477d1dd70ab881566755f12722e7aa1082e6e043..b697db733f8254bd4f09687e1d8fab53a2338805 100644 (file)
@@ -209,7 +209,11 @@ TimeAxisViewItem::init (ArdourCanvas::Group* parent, double fpp, Gdk::Color cons
 
                CANVAS_DEBUG_NAME (frame, string_compose ("frame for %1", get_item_name()));
                
-               frame->set_outline_what (ArdourCanvas::Rectangle::What (ArdourCanvas::Rectangle::LEFT|ArdourCanvas::Rectangle::RIGHT));
+               if (Config->get_show_name_highlight()) {
+                       frame->set_outline_what (ArdourCanvas::Rectangle::What (ArdourCanvas::Rectangle::LEFT|ArdourCanvas::Rectangle::RIGHT));
+               } else {
+                       frame->set_outline_what (ArdourCanvas::Rectangle::What (ArdourCanvas::Rectangle::LEFT|ArdourCanvas::Rectangle::RIGHT|ArdourCanvas::Rectangle::BOTTOM));
+               }
 
                if (_recregion) {
                        frame->set_outline_color (ARDOUR_UI::config()->get_canvasvar_RecordingRect());
@@ -217,8 +221,6 @@ TimeAxisViewItem::init (ArdourCanvas::Group* parent, double fpp, Gdk::Color cons
                        frame->set_outline_color (ARDOUR_UI::config()->get_canvasvar_TimeAxisFrame());
                }
 
-               frame->set_outline_what (ArdourCanvas::Rectangle::What (ArdourCanvas::Rectangle::RIGHT|ArdourCanvas::Rectangle::LEFT));
-
        } else {
 
                frame = 0;