Fix default icon checking.

This commit is contained in:
Sergey Vartanov 2022-04-08 00:21:30 +03:00
parent a554d28c5c
commit a7e7a5fc94

View file

@ -550,7 +550,10 @@ class Icon:
def is_default(self) -> bool:
"""Check whether first shape is default."""
return self.shape_specifications[0].is_default()
return (
len(self.shape_specifications) == 1
and self.shape_specifications[0].is_default()
)
def recolor(self, color: Color, white: Optional[Color] = None) -> None:
"""Paint all shapes in the color."""