From 6161911ff14b7d88631488d62c742ac110e80bfe Mon Sep 17 00:00:00 2001 From: "alonso.torres" Date: Tue, 13 Apr 2021 13:46:23 +0200 Subject: [PATCH] :bug: Fixes measurement on root frame --- frontend/src/app/main/ui/measurements.cljs | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/frontend/src/app/main/ui/measurements.cljs b/frontend/src/app/main/ui/measurements.cljs index baa197178..69bb881e8 100644 --- a/frontend/src/app/main/ui/measurements.cljs +++ b/frontend/src/app/main/ui/measurements.cljs @@ -9,14 +9,15 @@ (ns app.main.ui.measurements (:require - [rumext.alpha :as mf] + [app.common.data :as d] + [app.common.geom.point :as gpt] + [app.common.geom.shapes :as gsh] + [app.common.math :as mth] + [app.common.uuid :as uuid] + [app.main.store :as st] [cuerdas.core :as str] [okulary.core :as l] - [app.common.data :as d] - [app.common.math :as mth] - [app.common.geom.shapes :as gsh] - [app.common.geom.point :as gpt] - [app.main.store :as st])) + [rumext.alpha :as mf])) ;; ------------------------------------------------ ;; CONSTANTS @@ -247,7 +248,7 @@ [:& size-display {:selrect selected-selrect :zoom zoom}] (if (or (not hover-shape) (not hover-selected-shape?)) - (when frame + (when (and frame (not= uuid/zero (:id frame))) [:g.hover-shapes [:& distance-display {:from (:selrect frame) :to selected-selrect