Skip to content

Commit fa33706

Browse files
authored
Global y1
I BELIEVE y1 is being created globally in the crop function, and that x2 is not actually being used. So, I've changed local x1, x2 to local x1, y1. #177
1 parent 6894a45 commit fa33706

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ local function crop(...)
470470
else
471471
iwidth,iheight = src:size(2),src:size(1)
472472
end
473-
local x1, x2
473+
local x1, y1
474474
if format == 'c' then
475475
x1, y1 = math.floor((iwidth-width)/2), math.floor((iheight-height)/2)
476476
elseif format == 'tl' then

0 commit comments

Comments
 (0)