mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-09 00:04:56 +01:00
assign minsec_ruler_scale and minsec_mark_modulo when zoomed very far out
Avoids crash when computing % minsec_mark_modulo.
This commit is contained in:
parent
57c1b6e261
commit
dcf632d99f
1 changed files with 3 additions and 3 deletions
|
|
@ -1742,11 +1742,11 @@ Editor::set_minsec_ruler_scale (framepos_t lower, framepos_t upper)
|
||||||
minsec_ruler_scale = minsec_show_hours;
|
minsec_ruler_scale = minsec_show_hours;
|
||||||
minsec_mark_modulo = 2;
|
minsec_mark_modulo = 2;
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
/* not possible if framepos_t is a 32 bit quantity */
|
|
||||||
|
|
||||||
minsec_mark_interval = 4 * 60 * 60 * fr; /* show 4 hrs */
|
minsec_mark_interval = 4 * 60 * 60 * fr; /* show 4 hrs */
|
||||||
|
minsec_ruler_scale = minsec_show_hours;
|
||||||
|
minsec_mark_modulo = 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
minsec_nmarks = 2 + (range / minsec_mark_interval);
|
minsec_nmarks = 2 + (range / minsec_mark_interval);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue