Skip to content

Commit

Permalink
Update ultraschall_toggle_zoom_selection.lua
Browse files Browse the repository at this point in the history
Edgecase Bugfix
  • Loading branch information
rstockm committed Mar 20, 2021
1 parent b65c786 commit dd38311
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Scripts/ultraschall_toggle_zoom_selection.lua
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ if (init_end_timesel ~= init_start_timesel) or selected_items_count > 0 then
reaper.Main_OnCommand(reaper.NamedCommandLookup("_Ultraschall_Unselect_All"), 0) -- Zoom to selection
else
oldzoomfactor=ultraschall.GetUSExternalState("ultraschall_view","zoom_toggle_select")
if oldzoomfactor then -- wurde je schon mal ein zoomfaktor über die Funktion gesetzt?
if oldzoomfactor ~= "" then -- wurde je schon mal ein zoomfaktor über die Funktion gesetzt?
reaper.adjustZoom(tonumber(oldzoomfactor), 1, true, 0)
oldzoomfactorVertical=ultraschall.GetUSExternalState("ultraschall_view","zoom_toggle_select_vertical")
ultraschall.SetVerticalZoom(tonumber(oldzoomfactorVertical))
Expand Down

0 comments on commit dd38311

Please sign in to comment.