blob: ca31a35c93c8775fb2606ef20e12bedd1133cba4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
# Authors: see git history
#
# Copyright (c) 2010 Authors
# Licensed under the GNU GPL version 3.0 or later. See the file LICENSE for details.
from ..i18n import _
from ..svg.tags import INKSCAPE_LABEL
from .element import EmbroideryElement
from .validation import ObjectTypeWarning
class EmptyD(ObjectTypeWarning):
name = _("Empty Path")
description = _("There is an invalid object in the document without geometry information.")
steps_to_solve = [
_('* Run Extensions > Ink/Stitch > Troubleshoot > Cleanup Document...')
]
class EmptyDObject(EmbroideryElement):
def validation_warnings(self):
label = self.node.get(INKSCAPE_LABEL) or self.node.get("id")
yield EmptyD((0, 0), label)
@property
def shape(self):
return
@property
def first_stitch(self):
return
def to_stitch_groups(self, last_stitch_group, next_element=None):
return []
|