13
0

Patch from epitech_user to fix crash on zooming out too

far (#4806).


git-svn-id: svn://localhost/ardour2/branches/3.0@12589 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington 2012-06-06 18:21:02 +00:00
parent c5fd217a4a
commit 72369f8670

View File

@ -1337,9 +1337,9 @@ Editor::temporal_zoom_step (bool coarser)
nfpu = frames_per_unit;
if (coarser) {
nfpu *= 1.61803399;
nfpu = min (9e6, nfpu * 1.61803399);
} else {
nfpu = max(1.0,(nfpu/1.61803399));
nfpu = max (1.0, nfpu / 1.61803399);
}
temporal_zoom (nfpu);