diff --git a/gtk2_ardour/meter_patterns.cc b/gtk2_ardour/meter_patterns.cc index f6c39676ba..8b0839ab28 100644 --- a/gtk2_ardour/meter_patterns.cc +++ b/gtk2_ardour/meter_patterns.cc @@ -52,8 +52,8 @@ meter_render_ticks (Gtk::Widget& w, vector types) bool background; gint width, height; win->get_size (width, height); - background = - w.get_name().substr(w.get_name().length() - 4) == "Left" + background = types.size() == 0 + || w.get_name().substr(w.get_name().length() - 4) == "Left" || w.get_name().substr(w.get_name().length() - 5) == "Right"; cairo_surface_t* surface = cairo_image_surface_create (CAIRO_FORMAT_RGB24, width, height); @@ -204,7 +204,7 @@ meter_render_metrics (Gtk::Widget& w, vector types) win->get_size (width, height); tickleft = w.get_name().substr(w.get_name().length() - 4) == "Left"; - background = tickleft || w.get_name().substr(w.get_name().length() - 5) == "Right"; + background = types.size() == 0 || tickleft || w.get_name().substr(w.get_name().length() - 5) == "Right"; cairo_surface_t* surface = cairo_image_surface_create (CAIRO_FORMAT_RGB24, width, height); cairo_t* cr = cairo_create (surface);