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:
Robin Gareus 2025-09-29 18:35:49 +02:00
parent 717d6b4ee2
commit 3d05dea965
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04

View file

@ -698,6 +698,13 @@ Pianoroll::set_samples_per_pixel (samplecnt_t spp)
{
EC_LOCAL_TEMPO_SCOPE;
assert (spp > 0);
#ifndef NDEBUG
if (spp < 1) {
spp = 1;
}
#endif
CueEditor::set_samples_per_pixel (spp);
if (view) {