Fix bug introduced in previous commit.

This commit is contained in:
Andrey Antukh 2016-01-19 18:16:28 +02:00
parent 48cb96221e
commit 9f512abaeb

View file

@ -48,6 +48,7 @@
(defn shapes-selrect-render
[own shapes]
(when (seq shapes)
(let [[width height x y] (sh/group-size-and-position shapes)]
(html
[:g.controls
@ -61,7 +62,7 @@
[:circle.bottom-left (merge default-selection-props
{:cx x :cy (+ y height)})]
[:circle.bottom-right (merge default-selection-props
{:cx (+ x width) :cy (+ y height)})]])))
{:cx (+ x width) :cy (+ y height)})]]))))
(def ^:static shapes-selrect
(mx/component