mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-06 13:45:43 +01:00
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
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue