minor fixups for ghost region height management

This commit is contained in:
Paul Davis 2021-12-08 13:19:20 -07:00
parent ee22381f32
commit be111abb34
2 changed files with 1 additions and 5 deletions

View File

@ -68,7 +68,7 @@ GhostRegion::GhostRegion (RegionView& rv,
CANVAS_DEBUG_NAME (base_rect, "ghost region rect");
base_rect->set_x0 (0);
base_rect->set_y0 (1.0);
base_rect->set_y1 (1);
base_rect->set_y1 (2.0); /* set height will change this later */
base_rect->set_outline (false);
if (!is_automation_ghost()) {

View File

@ -350,10 +350,6 @@ TimeAxisView::show_at (double y, int& nth, VBox *parent)
}
}
for (list<GhostRegion*>::iterator i = ghosts.begin(); i != ghosts.end(); ++i) {
(*i)->set_height (current_height());
}
/* put separator at the bottom of this time axis view */
_canvas_separator->set (ArdourCanvas::Duple(0, height), ArdourCanvas::Duple(ArdourCanvas::COORD_MAX, height));