Merge remote-tracking branch 'ThiagoLira/develop' into develop

Also fixed whitespace from #1251

Closes #1186
develop
lethosor 2018-04-04 17:12:06 -04:00
commit 5081710900
1 changed files with 1 additions and 0 deletions

@ -109,6 +109,7 @@ local function parse_inset(inset)
end
function inset_frame(rect, inset, gap)
if not rect then return mkdims_wh(0, 0, 0, 0) end
gap = gap or 0
local l,t,r,b = parse_inset(inset)
return mkdims_xy(rect.x1+l+gap, rect.y1+t+gap, rect.x2-r-gap, rect.y2-b-gap)