diff options
| author | Kaalleen <36401965+kaalleen@users.noreply.github.com> | 2022-07-14 16:23:46 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-07-14 16:23:46 +0200 |
| commit | 4f7cd2885f4d0e725b33c919ef655af0240948cb (patch) | |
| tree | a250a2f6159e3f3690bab3a6d33be44581ed8d52 /lib/extensions/convert_to_satin.py | |
| parent | e23997ed1c79e35c1bbaff61721ef0851737b990 (diff) | |
Some updates for small issues in v2.2.0 (#1721)
* * autorun - underpath tolerance
* save pdf file format
* fill no geoms error for linestring
* to satin: do not fail on mixed element list
Diffstat (limited to 'lib/extensions/convert_to_satin.py')
| -rw-r--r-- | lib/extensions/convert_to_satin.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/extensions/convert_to_satin.py b/lib/extensions/convert_to_satin.py index 9950b2e8..93850789 100644 --- a/lib/extensions/convert_to_satin.py +++ b/lib/extensions/convert_to_satin.py @@ -35,12 +35,15 @@ class ConvertToSatin(InkstitchExtension): inkex.errormsg(_("Please select at least one line to convert to a satin column.")) return - if not all(isinstance(item, Stroke) for item in self.elements): + if not any(isinstance(item, Stroke) for item in self.elements): # L10N: Convert To Satin extension, user selected one or more objects that were not lines. inkex.errormsg(_("Only simple lines may be converted to satin columns.")) return for element in self.elements: + if not isinstance(element, Stroke): + continue + parent = element.node.getparent() index = parent.index(element.node) correction_transform = get_correction_transform(element.node) |
