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