0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-12 07:41:43 -05:00

🐛 Fix rotation value when path is not rotated

This commit is contained in:
Eva 2022-05-17 11:59:48 +02:00
parent f68a4eb84a
commit 141bcdd25e

View file

@ -72,7 +72,7 @@
(not= (:width values) :multiple) (assoc :width width)
(not= (:height values) :multiple) (assoc :height height)))
values (let [{:keys [rotation]} (-> shapes first)]
values (let [{:keys [rotation] :or {rotation 0}} (-> shapes first)]
(cond-> values
(not= (:rotation values) :multiple) (assoc :rotation rotation)))