mirror of
https://github.com/enzet/map-machine.git
synced 2025-05-05 13:16:43 +02:00
Fix default icon checking.
This commit is contained in:
parent
a554d28c5c
commit
a7e7a5fc94
1 changed files with 4 additions and 1 deletions
|
@ -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."""
|
||||
|
|
Loading…
Add table
Reference in a new issue