diff --git a/gtk2_ardour/editor_canvas.cc b/gtk2_ardour/editor_canvas.cc index f91d8fd20e..2b7ae25a78 100644 --- a/gtk2_ardour/editor_canvas.cc +++ b/gtk2_ardour/editor_canvas.cc @@ -167,7 +167,7 @@ Editor::initialize_canvas () tempo_group = new ArdourCanvas::Container (tempo_meta_group, ArdourCanvas::Duple (0.0, 0.0)); CANVAS_DEBUG_NAME (tempo_group, "tempo group"); mapping_group = new ArdourCanvas::Container (tempo_meta_group, ArdourCanvas::Duple (0.0, 0.0)); - CANVAS_DEBUG_NAME (tempo_group, "mapping group"); + CANVAS_DEBUG_NAME (mapping_group, "mapping group"); meter_group = new ArdourCanvas::Container (_time_markers_group, ArdourCanvas::Duple (0.0, (timebar_height * 5.0) + 1.0)); CANVAS_DEBUG_NAME (meter_group, "meter group"); @@ -185,12 +185,11 @@ Editor::initialize_canvas () tempo_bar->set_outline(false); tempo_bar->set_outline_what(ArdourCanvas::Rectangle::BOTTOM); - mapping_bar = new ArdourCanvas::Rectangle (tempo_group, ArdourCanvas::Rect (0.0, 0.0, ArdourCanvas::COORD_MAX, timebar_height)); + mapping_bar = new ArdourCanvas::Rectangle (mapping_group, ArdourCanvas::Rect (0.0, 0.0, ArdourCanvas::COORD_MAX, timebar_height)); CANVAS_DEBUG_NAME (mapping_bar, "Mapping Bar"); mapping_bar->set_fill(true); mapping_bar->set_outline(false); mapping_bar->set_outline_what(ArdourCanvas::Rectangle::BOTTOM); - mapping_bar->hide (); range_marker_bar = new ArdourCanvas::Rectangle (range_marker_group, ArdourCanvas::Rect (0.0, timebar_top, ArdourCanvas::COORD_MAX, timebar_btm)); CANVAS_DEBUG_NAME (range_marker_bar, "Range Marker Bar");