Merge pull request #1 from ssiegler/patch-1
Fix `attempt to concatenate a nil value`
This commit is contained in:
commit
857d213d21
|
@ -181,7 +181,7 @@ function module.create(name, editor)
|
||||||
local lu = nil
|
local lu = nil
|
||||||
local rd = nil
|
local rd = nil
|
||||||
if not skip then
|
if not skip then
|
||||||
log(DEBUG, "Compute regions for " .. c.name or ("<untitled:" .. tostring(c) .. ">"))
|
log(DEBUG, "Compute regions for " .. (c.name or ("<untitled:" .. tostring(c) .. ">")))
|
||||||
lu = find_lu(c, regions)
|
lu = find_lu(c, regions)
|
||||||
if lu ~= nil then
|
if lu ~= nil then
|
||||||
c.x = regions[lu].x
|
c.x = regions[lu].x
|
||||||
|
@ -209,7 +209,7 @@ function module.create(name, editor)
|
||||||
regions[c.machi_region].height - c.border_width * 2 == c.height
|
regions[c.machi_region].height - c.border_width * 2 == c.height
|
||||||
then
|
then
|
||||||
else
|
else
|
||||||
log(DEBUG, "Compute regions for " .. c.name or ("<untitled:" .. tostring(c) .. ">"))
|
log(DEBUG, "Compute regions for " .. (c.name or ("<untitled:" .. tostring(c) .. ">")))
|
||||||
local region = find_region(c, regions)
|
local region = find_region(c, regions)
|
||||||
c.machi_region = region
|
c.machi_region = region
|
||||||
p.geometries[c] = {}
|
p.geometries[c] = {}
|
||||||
|
|
Loading…
Reference in New Issue