mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-08 07:45:00 +01:00
Stopgap solution for pianoroll zoom FPE
It should be impossible to zoom to < 1 sample/pixel, but apparently some users manage this using elaborate scroll+zoom tricks to be tracked down.
This commit is contained in:
parent
717d6b4ee2
commit
3d05dea965
1 changed files with 7 additions and 0 deletions
|
|
@ -698,6 +698,13 @@ Pianoroll::set_samples_per_pixel (samplecnt_t spp)
|
||||||
{
|
{
|
||||||
EC_LOCAL_TEMPO_SCOPE;
|
EC_LOCAL_TEMPO_SCOPE;
|
||||||
|
|
||||||
|
assert (spp > 0);
|
||||||
|
#ifndef NDEBUG
|
||||||
|
if (spp < 1) {
|
||||||
|
spp = 1;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
CueEditor::set_samples_per_pixel (spp);
|
CueEditor::set_samples_per_pixel (spp);
|
||||||
|
|
||||||
if (view) {
|
if (view) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue