fix computation of maximum zoom for an editing context
it must take the max_extents_scale() value into consideration.
This commit is contained in:
@@ -2522,7 +2522,7 @@ EditingContext::reset_zoom (samplecnt_t spp)
|
||||
}
|
||||
|
||||
std::pair<timepos_t, timepos_t> ext = max_zoom_extent();
|
||||
samplecnt_t max_extents_pp = (ext.second.samples() - ext.first.samples()) / _track_canvas_width;
|
||||
samplecnt_t max_extents_pp = max_extents_scale() * ((ext.second.samples() - ext.first.samples()) / _track_canvas_width);
|
||||
|
||||
if (spp > max_extents_pp) {
|
||||
spp = max_extents_pp;
|
||||
|
||||
Reference in New Issue
Block a user