Add default return values for Padding params

This commit is contained in:
Gabriel Tofvesson 2024-10-12 04:17:57 +02:00
parent 26ecd2a90d
commit bb5f246687

View File

@ -49,19 +49,19 @@ function Padding:setDirty(fullInvalidate)
end
function Padding:getPaddingLeft()
return self.left
return self.left or 0
end
function Padding:getPaddingRight()
return self.right
return self.right or 0
end
function Padding:getPaddingTop()
return self.top
return self.top or 0
end
function Padding:getPaddingBottom()
return self.bottom
return self.bottom or 0
end
local function compareSet(value, default, didChange)