From 9aef91b3caf57d30bf1b99512e112e26cc2cc29a Mon Sep 17 00:00:00 2001 From: Mino-Tsuzuku <42058913+totake0224@users.noreply.github.com> Date: Sun, 2 Mar 2025 10:06:46 +0900 Subject: [PATCH] fix #19723 SVG: transform attribute is not handled collectly (#19845) * * Move pyopen with encoding to utils. and modify all importing library to use pyopen with encoding. with this change, DXF OCA AirfoilDAT with multibyte sequence always read as utf-8. * Fix SVG transform attribute is not handler collectly. --- src/Mod/Draft/importSVG.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mod/Draft/importSVG.py b/src/Mod/Draft/importSVG.py index 5156e1e997..81856c2316 100644 --- a/src/Mod/Draft/importSVG.py +++ b/src/Mod/Draft/importSVG.py @@ -1616,7 +1616,7 @@ class svgHandler(xml.sax.ContentHandler): _transf = _op + '\\s*?' + _val transformre = re.compile(_transf, re.DOTALL) m = FreeCAD.Matrix() - for transformation, arguments in transformre.findall(tr): + for transformation, arguments in reversed(transformre.findall(tr)): _args_rep = arguments.replace(',', ' ').split() argsplit = [float(arg) for arg in _args_rep] # m.multiply(FreeCAD.Matrix(1, 0, 0, 0, 0, -1))