Fill fonts with satin auto-routing (#1915)

* prevent error message on fill fonts with satin auto-routing
pull/1937/head
Kaalleen 2022-11-30 15:49:51 +01:00 zatwierdzone przez GitHub
rodzic 1676333111
commit 5af256e633
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -11,7 +11,7 @@ from random import randint
import inkex
from ..commands import add_commands, ensure_symbol
from ..elements import FillStitch, Stroke, nodes_to_elements
from ..elements import FillStitch, SatinColumn, Stroke, nodes_to_elements
from ..exceptions import InkstitchException
from ..extensions.lettering_custom_font_dir import get_custom_font_dir
from ..i18n import _, get_languages
@ -417,6 +417,7 @@ class Font(object):
"""
elements = nodes_to_elements(group.iterdescendants(SVG_PATH_TAG))
elements = [element for element in elements if isinstance(element, SatinColumn) or isinstance(element, Stroke)]
if elements:
auto_satin(elements, preserve_order=True, trim=False)