diff --git a/map_machine/pictogram/icon.py b/map_machine/pictogram/icon.py index 4130953..7810d07 100644 --- a/map_machine/pictogram/icon.py +++ b/map_machine/pictogram/icon.py @@ -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."""