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:
Paul Davis 2014-11-23 14:34:46 +02:00
parent 57c1b6e261
commit dcf632d99f

View file

@ -1742,11 +1742,11 @@ Editor::set_minsec_ruler_scale (framepos_t lower, framepos_t upper)
minsec_ruler_scale = minsec_show_hours;
minsec_mark_modulo = 2;
} else {
/* not possible if framepos_t is a 32 bit quantity */
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);
}