From 3d4c914daa862dc4adfca291e2c65947928cacfd Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Tue, 14 Apr 2026 19:36:52 +0000 Subject: [PATCH] :bug: Fix trailing comma in matrix->str and remove duplicate dispatch matrix->str was producing malformed strings like '1,0,0,1,0,0,' instead of '1,0,0,1,0,0', breaking string serialization of matrix values used in transit and print-dup handlers. Also remove the first pp/simple-dispatch registration for Matrix at line 362 which was dead code shadowed by the identical registration further down in the file. Signed-off-by: Andrey Antukh --- common/src/app/common/geom/matrix.cljc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/common/src/app/common/geom/matrix.cljc b/common/src/app/common/geom/matrix.cljc index 63195b1bb5..a7ed0cea68 100644 --- a/common/src/app/common/geom/matrix.cljc +++ b/common/src/app/common/geom/matrix.cljc @@ -101,7 +101,7 @@ (dm/get-prop o :c) "," (dm/get-prop o :d) "," (dm/get-prop o :e) "," - (dm/get-prop o :f) ",") + (dm/get-prop o :f)) o)) (defn- matrix->json @@ -359,8 +359,6 @@ (th-eq m1e m2e) (th-eq m1f m2f)))) -(defmethod pp/simple-dispatch Matrix [obj] (pr obj)) - (defn transform-in [pt mtx] (if (and (some? pt) (some? mtx)) (-> (matrix)