weimingtom / lua-files

Automatically exported from code.google.com/p/lua-files
2 stars 0 forks source link

error path.lua:188: no current point #1

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
One cannot call abs_cmd with cpx or cpy being nil. This should be a fix. 
Correct me if I'm wrong.

local function abs_path(path)
    local t = {}
    local cpx, cpy, spx, spy = 0, 0 -- HERE
    for i,s in commands(path) do
        cpx, cpy, spx, spy = add_abs_cmd(t, cpx, cpy, spx, spy, abs_cmd(cpx, cpy, cmd(path, i)))
    end
    return t
end

Original issue reported on code.google.com by kuba.trz...@gmail.com on 6 Jul 2013 at 5:18

GoogleCodeExporter commented 8 years ago
I'm sorry, it was my bad understanding. Paths cannot start with "rel_move" and 
this error is expected.

Original comment by kuba.trz...@gmail.com on 6 Jul 2013 at 8:43