0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-04-01 17:41:50 -05:00

🐛 Fix problem with imported SVG on editing paths

This commit is contained in:
alonso.torres 2021-05-24 12:22:38 +02:00 committed by Andrés Moya
parent 42072f2584
commit 28c5fd4583
2 changed files with 5 additions and 1 deletions

View file

@ -30,6 +30,7 @@
- Remove interactions when the destination artboard is deleted [Taiga #1656](https://tree.taiga.io/project/penpot/issue/1656).
- Fix problem with fonts that ends with numbers [#940](https://github.com/penpot/penpot/issues/940).
- Fix problem with imported SVG on editing paths [#971](https://github.com/penpot/penpot/issues/971)
### :arrow_up: Deps updates

View file

@ -22,7 +22,10 @@
(defn add-subpath-command
"Adds a command to the subpath"
[subpath command]
(let [p (upc/command->point command)]
(let [command (if (= :close-path (:command command))
(upc/make-line-to (:from subpath))
command)
p (upc/command->point command)]
(-> subpath
(assoc :to p)
(update :data conj command))))