Ignore 0 secondary arg.
This commit is contained in:
parent
f8ff725e9b
commit
2188a2a625
|
@ -791,7 +791,7 @@ local function areas_to_command(areas, to_embed, root_area)
|
|||
for _, share in ipairs(shares) do
|
||||
if #arg_str > 0 then arg_str = arg_str.."," end
|
||||
arg_str = arg_str..tostring(share[1])
|
||||
if not share[2] then
|
||||
if not share[2] or share[2] == 0 then
|
||||
-- nothing
|
||||
elseif share[2] > 0 then
|
||||
arg_str = arg_str.."_"..tostring(share[2])
|
||||
|
|
Loading…
Reference in New Issue