mirror of
https://github.com/penpot/penpot.git
synced 2025-05-11 21:06:40 +02:00
🐛 Fix problem with imported SVG on editing paths
This commit is contained in:
parent
42072f2584
commit
28c5fd4583
2 changed files with 5 additions and 1 deletions
|
@ -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))))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue