Update 'Controller/CropController.lua'

This commit is contained in:
manuel 2023-01-12 08:05:30 +00:00
parent 7827a83f31
commit b4fb543f13

View File

@ -21,7 +21,7 @@ function CropController:toMatrix(str)
str = str:sub(2, len - 1)
len = len - 2
if ob == 1 then
return toArray(str)
return self:toArray(str)
else
local level = 0
local lastC = 0
@ -33,7 +33,7 @@ function CropController:toMatrix(str)
level = level - 1
elseif c == "," then
if level == 0 then
matrix[#matrix+1] = toMatrix(str:sub(lastC + 1, i - 1))
matrix[#matrix+1] = self:toMatrix(str:sub(lastC + 1, i - 1))
lastC = i
end
end