diff options
Diffstat (limited to 'lib/elements/empty_d_object.py')
| -rw-r--r-- | lib/elements/empty_d_object.py | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/lib/elements/empty_d_object.py b/lib/elements/empty_d_object.py new file mode 100644 index 00000000..69a128ad --- /dev/null +++ b/lib/elements/empty_d_object.py @@ -0,0 +1,20 @@ +from ..i18n import _ +from .element import EmbroideryElement +from .validation import ObjectTypeWarning + + +class EmptyD(ObjectTypeWarning): + name = _("Empty D-Attribute") + description = _("There is an invalid path object in the document, the d-attribute is missing.") + steps_to_solve = [ + _('* Run Extensions > Ink/Stitch > Troubleshoot > Cleanup Document...') + ] + + +class EmptyDObject(EmbroideryElement): + + def validation_warnings(self): + yield EmptyD((0, 0)) + + def to_patches(self, last_patch): + return [] |
