From c95724719b6e62cdd6b64fc6edac621c090068bd Mon Sep 17 00:00:00 2001 From: Mario Voigt Date: Sun, 30 May 2021 10:43:38 +0200 Subject: [PATCH] fix typo in contour scanner --- extensions/fablabchemnitz/contourscanner/contour_scanner.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extensions/fablabchemnitz/contourscanner/contour_scanner.py b/extensions/fablabchemnitz/contourscanner/contour_scanner.py index 48067fdd..f39c9793 100644 --- a/extensions/fablabchemnitz/contourscanner/contour_scanner.py +++ b/extensions/fablabchemnitz/contourscanner/contour_scanner.py @@ -43,7 +43,7 @@ class ContourScanner(inkex.EffectExtension): pars.add_argument("--highlight_selfintersecting", type=inkex.Boolean, default=True, help="Highlight self-intersecting contours") pars.add_argument("--highlight_intersectionpoints", type=inkex.Boolean, default=True, help="Highlight self-intersecting points") pars.add_argument("--color_selfintersecting", type=Color, default='1923076095', help="Color closed contours") - pars.add_argument("--color_intersectionpoints", type=Color, default='4239343359', help="Color closed contours") + pars.add_argument("--color_intersectionpoints", type=Color, default='4239343359', help="self-intersecting points") pars.add_argument("--addlines", type=inkex.Boolean, default=True, help="Add closing lines for self-crossing contours") pars.add_argument("--polypaths", type=inkex.Boolean, default=True, help="Add polypath outline for self-crossing contours") pars.add_argument("--dotsize", type=int, default=10, help="Dot size (px) for self-intersecting points") @@ -83,7 +83,7 @@ class ContourScanner(inkex.EffectExtension): else: polypath.append(['L', [x,y]]) if i == 1 and polypath[len(polypath)-2][1] == polypath[len(polypath)-1][1]: - polypath.pop(len(polypath)-1) #special handling for the seconds point after M command + polypath.pop(len(polypath)-1) #special handling for the second point after M command elif polypath[len(polypath)-2] == polypath[len(polypath)-1]: #get the previous point polypath.pop(len(polypath)-1) i += 1