diff options
| author | Kaalleen <36401965+kaalleen@users.noreply.github.com> | 2022-11-27 08:37:59 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-11-27 08:37:59 +0100 |
| commit | e9278c55c34b72bb0beccf0d9b8bfe300aacac70 (patch) | |
| tree | 0bd9728003f1cf8b03ba2ed610fafdcd217267fd /lib/elements/fill_stitch.py | |
| parent | 9c0b64560cadc246b3555951ddb1e21960662553 (diff) | |
This and that (#1727)
* dont fail on satin with fill
* fill stitch error message
* convert to satin mac issue
* auto_satin: add rung for two node old style satins
* avoid divide by zero in intersect_region_with_grating
* fix for incorrect stagger in guided fill
* better rail sectioning algorithm
* fix #1780
* fix #1816
Co-authored-by: Lex Neva
Diffstat (limited to 'lib/elements/fill_stitch.py')
| -rw-r--r-- | lib/elements/fill_stitch.py | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/lib/elements/fill_stitch.py b/lib/elements/fill_stitch.py index a5248952..173868d4 100644 --- a/lib/elements/fill_stitch.py +++ b/lib/elements/fill_stitch.py @@ -272,6 +272,8 @@ class FillStitch(EmbroideryElement): return shgeo.MultiPolygon([valid_shape]) if isinstance(valid_shape, shgeo.LineString): return shgeo.MultiPolygon([]) + if shape.area == 0: + return shgeo.MultiPolygon([]) polygons = [] for polygon in valid_shape.geoms: @@ -713,12 +715,17 @@ class FillStitch(EmbroideryElement): # for an uncaught exception, give a little more info so that they can create a bug report message = "" - message += _("Error during autofill! This means that there is a problem with Ink/Stitch.") + message += _("Error during autofill! This means it is a bug in Ink/Stitch.") message += "\n\n" # L10N this message is followed by a URL: https://github.com/inkstitch/inkstitch/issues/new - message += _("If you'd like to help us make Ink/Stitch better, please paste this whole message into a new issue at: ") - message += "https://github.com/inkstitch/inkstitch/issues/new\n\n" - message += version.get_inkstitch_version() + "\n\n" + message += _("If you'd like to help please\n" + "- copy the entire error message below\n" + "- save your SVG file and\n" + "- create a new issue at") + message += " https://github.com/inkstitch/inkstitch/issues/new\n\n" + message += _("Include the error description and also (if possible) the svg file.") + message += '\n\n\n' + message += version.get_inkstitch_version() + '\n' message += traceback.format_exc() self.fatal(message) |
