mirror of
https://github.com/penpot/penpot.git
synced 2026-08-12 15:58:38 +00:00
🐛 Fix creating minimal path shapes (#11210)
This commit is contained in:
parent
0de47302a6
commit
4a1d6e6d57
@ -657,10 +657,15 @@
|
||||
[type]
|
||||
(let [type (if (= type :curve) :path type)
|
||||
attrs (get-minimal-shape type)
|
||||
attrs (cond-> attrs
|
||||
(and (not= :path type)
|
||||
(not= :bool type))
|
||||
(-> (assoc :x 0)
|
||||
attrs (if (or (= :path type)
|
||||
(= :bool type))
|
||||
(-> attrs
|
||||
(assoc :x nil)
|
||||
(assoc :y nil)
|
||||
(assoc :width nil)
|
||||
(assoc :height nil))
|
||||
(-> attrs
|
||||
(assoc :x 0)
|
||||
(assoc :y 0)
|
||||
(assoc :width 0.01)
|
||||
(assoc :height 0.01)))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user