mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 07:14:56 +01:00
when window size technically, just the window containing the editor canvas, or the canvas itself) changes, recompute BBT ruler stuff
This commit is contained in:
parent
7e196e7559
commit
efd0d65acb
2 changed files with 3 additions and 0 deletions
|
|
@ -313,6 +313,7 @@ Editor::track_canvas_viewport_size_allocated ()
|
|||
}
|
||||
|
||||
update_fixed_rulers();
|
||||
update_tempo_based_rulers ();
|
||||
redisplay_grid (false);
|
||||
_summary->set_overlays_dirty ();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -679,6 +679,8 @@ Editor::update_tempo_based_rulers ()
|
|||
|
||||
_bbt_metric->units_per_pixel = samples_per_pixel;
|
||||
|
||||
compute_bbt_ruler_scale (_leftmost_sample, _leftmost_sample + current_page_samples());
|
||||
|
||||
if (ruler_bbt_action->get_active()) {
|
||||
bbt_ruler->set_range (_leftmost_sample, _leftmost_sample+current_page_samples());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue