Text.IsZero to check more values
This commit is contained in:
parent
e495ec6439
commit
0642b65e87
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue
Block a user