From bb5f246687369c8a53f9400ef9e2682f1598cdd9 Mon Sep 17 00:00:00 2001 From: Gabriel Tofvesson Date: Sat, 12 Oct 2024 04:17:57 +0200 Subject: [PATCH] Add default return values for Padding params --- gfx/padding.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gfx/padding.lua b/gfx/padding.lua index f3f5821..67b5bda 100644 --- a/gfx/padding.lua +++ b/gfx/padding.lua @@ -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)