From 141bcdd25ec36af73abc2aed056c1014c2cc2609 Mon Sep 17 00:00:00 2001 From: Eva Date: Tue, 17 May 2022 11:59:48 +0200 Subject: [PATCH] :bug: Fix rotation value when path is not rotated --- .../app/main/ui/workspace/sidebar/options/menus/measures.cljs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/app/main/ui/workspace/sidebar/options/menus/measures.cljs b/frontend/src/app/main/ui/workspace/sidebar/options/menus/measures.cljs index c581c21176..dfc8f16401 100644 --- a/frontend/src/app/main/ui/workspace/sidebar/options/menus/measures.cljs +++ b/frontend/src/app/main/ui/workspace/sidebar/options/menus/measures.cljs @@ -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)))