summaryrefslogtreecommitdiff
path: root/lib/elements/auto_fill.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/elements/auto_fill.py')
-rw-r--r--lib/elements/auto_fill.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/elements/auto_fill.py b/lib/elements/auto_fill.py
index 69533f62..cf7a44a7 100644
--- a/lib/elements/auto_fill.py
+++ b/lib/elements/auto_fill.py
@@ -11,6 +11,7 @@ from shapely import geometry as shgeo
from ..i18n import _
from ..stitches import auto_fill
+from ..svg.tags import INKSCAPE_LABEL
from ..utils import cache, version
from .element import Patch, param
from .fill import Fill
@@ -264,7 +265,8 @@ class AutoFill(Fill):
def validation_warnings(self):
if self.shape.area < 20:
- yield SmallShapeWarning(self.shape.centroid)
+ label = self.node.get(INKSCAPE_LABEL) or self.node.get("id")
+ yield SmallShapeWarning(self.shape.centroid, label)
if self.shrink_or_grow_shape(self.expand, True).is_empty:
yield ExpandWarning(self.shape.centroid)