From b6681c2c4994e0c3a28af898af366767a6c71473 Mon Sep 17 00:00:00 2001 From: Kaalleen <36401965+kaalleen@users.noreply.github.com> Date: Wed, 22 Oct 2025 18:05:09 +0200 Subject: jump to stroke: add path label (#4011) --- lib/extensions/jump_to_stroke.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/extensions') diff --git a/lib/extensions/jump_to_stroke.py b/lib/extensions/jump_to_stroke.py index 7470faeb..2177c56e 100644 --- a/lib/extensions/jump_to_stroke.py +++ b/lib/extensions/jump_to_stroke.py @@ -6,6 +6,7 @@ from inkex import Boolean, DirectedLineSegment, Path, PathElement, Transform from ..elements import Stroke +from ..i18n import _ from ..svg import PIXELS_PER_MM, generate_unique_id, get_correction_transform from ..svg.tags import INKSTITCH_ATTRIBS, SVG_GROUP_TAG from .base import InkstitchExtension @@ -187,6 +188,7 @@ class JumpToStroke(InkstitchExtension): style = f'stroke:{color};stroke-width:{self.svg.viewport_to_unit("1px")};stroke-dasharray:3, 1;fill:none;' line = PathElement(d=str(path), style=style) + line.label = _('Running Stitch') line.set(INKSTITCH_ATTRIBS['running_stitch_length_mm'], self.options.running_stitch_length_mm) line.set(INKSTITCH_ATTRIBS['running_stitch_tolerance_mm'], self.options.running_stitch_tolerance_mm) parent.insert(index, line) -- cgit v1.2.3