mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-27 08:57:41 +01:00
Fix background unhiding.
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@4091 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
90933d01e4
commit
b568afc01a
1 changed files with 4 additions and 1 deletions
|
|
@ -229,9 +229,9 @@ TimeAxisView::show_at (double y, int& nth, VBox *parent)
|
|||
if (y_position != y) {
|
||||
canvas_display->property_y () = y;
|
||||
canvas_background->property_y () = y + editor.get_canvas_timebars_vsize();
|
||||
canvas_background->move (0.0, 0.0);
|
||||
/* silly canvas */
|
||||
canvas_display->move (0.0, 0.0);
|
||||
canvas_background->move (0.0, 0.0);
|
||||
y_position = y;
|
||||
}
|
||||
|
||||
|
|
@ -241,6 +241,7 @@ TimeAxisView::show_at (double y, int& nth, VBox *parent)
|
|||
if (_marked_for_display) {
|
||||
controls_frame.show ();
|
||||
controls_ebox.show ();
|
||||
canvas_background->show ();
|
||||
}
|
||||
|
||||
_hidden = false;
|
||||
|
|
@ -265,9 +266,11 @@ TimeAxisView::clip_to_viewport ()
|
|||
{
|
||||
if (_marked_for_display) {
|
||||
if (y_position + effective_height < editor.get_trackview_group_vertical_offset () || y_position > editor.get_trackview_group_vertical_offset () + canvas_display->get_canvas()->get_height()) {
|
||||
canvas_background->hide ();
|
||||
canvas_display->hide ();
|
||||
return;
|
||||
}
|
||||
canvas_background->show();
|
||||
canvas_display->show ();
|
||||
}
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue