Merge pull request #1 from ssiegler/patch-1

Fix `attempt to concatenate a nil value`
This commit is contained in:
Xinhao Yuan 2019-10-10 19:19:24 -04:00 committed by GitHub
commit 857d213d21
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -181,7 +181,7 @@ function module.create(name, editor)
local lu = nil
local rd = nil
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)
if lu ~= nil then
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
then
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)
c.machi_region = region
p.geometries[c] = {}