From 3cd3230342d828cdaa6cdf05d3b9c3bfd5303d81 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Wed, 11 Jan 2017 20:51:08 +0100 Subject: [PATCH] Remove wrong lock support on resize-rect func. --- frontend/src/uxbox/main/geom.cljs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/frontend/src/uxbox/main/geom.cljs b/frontend/src/uxbox/main/geom.cljs index 928735a02..1d17082c6 100644 --- a/frontend/src/uxbox/main/geom.cljs +++ b/frontend/src/uxbox/main/geom.cljs @@ -269,12 +269,9 @@ (defn- resize-rect "A specialized function for absolute resize for rect-like shapes." - [shape {:keys [x y lock] :as pos}] - (if lock - (-> (assoc shape :x2 x :y2 y) - (equalize-sides) - (normalize-shape)) - (normalize-shape (assoc shape :x2 x :y2 y)))) + [shape {:keys [x y] :as pos}] + (-> (assoc shape :x2 x :y2 y) + (normalize-shape))) (defn- resize-circle "A specialized function for absolute resize