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:
parent
c5fd217a4a
commit
72369f8670
@ -1337,9 +1337,9 @@ Editor::temporal_zoom_step (bool coarser)
|
|||||||
nfpu = frames_per_unit;
|
nfpu = frames_per_unit;
|
||||||
|
|
||||||
if (coarser) {
|
if (coarser) {
|
||||||
nfpu *= 1.61803399;
|
nfpu = min (9e6, nfpu * 1.61803399);
|
||||||
} else {
|
} else {
|
||||||
nfpu = max(1.0,(nfpu/1.61803399));
|
nfpu = max (1.0, nfpu / 1.61803399);
|
||||||
}
|
}
|
||||||
|
|
||||||
temporal_zoom (nfpu);
|
temporal_zoom (nfpu);
|
||||||
|
Loading…
Reference in New Issue
Block a user