From 0642b65e87dd7cef3e13dffbd452544af01975fa Mon Sep 17 00:00:00 2001 From: Noah Petherbridge Date: Thu, 4 Jun 2020 21:59:19 -0700 Subject: [PATCH] Text.IsZero to check more values --- interface.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interface.go b/interface.go index 81066bf..377ec81 100644 --- a/interface.go +++ b/interface.go @@ -169,7 +169,7 @@ func (t Text) String() string { // IsZero returns if the Text is the zero value. func (t Text) IsZero() bool { - return t.Text == "" && t.Size == 0 && t.Color == Invisible && t.Padding == 0 && t.Stroke == Invisible && t.Shadow == Invisible + return t.Text == "" && t.Size == 0 && t.Color == Invisible && t.Padding == 0 && t.PadX == 0 && t.PadY == 0 && t.Stroke == Invisible && t.Shadow == Invisible } // Common color names.