From c444f11c4b9be7505b0aa17c90b49dbaf5484e95 Mon Sep 17 00:00:00 2001
From: Sergey Sharybin <sergey.vfx@gmail.com>
Date: Sun, 22 May 2011 06:18:33 +0000
Subject: [PATCH] Fix #27456: Scalable Vector Graphics (SVG) file importing
 incorrectly

Update current point position when closing path is needed.
---
 io_curve_svg/import_svg.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/io_curve_svg/import_svg.py b/io_curve_svg/import_svg.py
index 146f1e014..231986e52 100644
--- a/io_curve_svg/import_svg.py
+++ b/io_curve_svg/import_svg.py
@@ -912,6 +912,9 @@ class SVGPathParser:
         if self._spline:
             self._spline['closed'] = True
 
+            cv = self._spline['points'][0]
+            self._point = (cv['x'], cv['y'])
+
     def parse(self):
         """
         Execute parser
-- 
GitLab