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:
Paul Davis 2021-02-20 17:41:32 -07:00
parent 7e196e7559
commit efd0d65acb
2 changed files with 3 additions and 0 deletions

View File

@ -313,6 +313,7 @@ Editor::track_canvas_viewport_size_allocated ()
}
update_fixed_rulers();
update_tempo_based_rulers ();
redisplay_grid (false);
_summary->set_overlays_dirty ();
}

View File

@ -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());
}