diff --git a/common/src/app/common/geom/shapes/bounds.cljc b/common/src/app/common/geom/shapes/bounds.cljc index 854d24440c..6e7002f9d5 100644 --- a/common/src/app/common/geom/shapes/bounds.cljc +++ b/common/src/app/common/geom/shapes/bounds.cljc @@ -17,7 +17,7 @@ (if (cfh/path-shape? shape) ;; TODO: Calculate with the stroke offset (not implemented yet) (+ stroke-width (mth/sqrt (* 2 stroke-width stroke-width))) - (- (mth/sqrt (* 2 stroke-width stroke-width)) stroke-width))) + (mth/sqrt (* 2 stroke-width stroke-width)))) (defn- apply-filters [attr type filters] @@ -153,6 +153,7 @@ (get-object-bounds objects shape nil)) ([objects shape {:keys [ignore-margin?] :or {ignore-margin? true}}] (let [base-bounds (calculate-base-bounds shape ignore-margin?) + _ (prn ">" (:name shape) base-bounds) bounds (cond (or (empty? (:shapes shape))