Minor bug on drawarea.

This commit is contained in:
Andrey Antukh 2016-04-23 09:04:39 +03:00
parent 5695d07e7e
commit 15f6672b0e
No known key found for this signature in database
GPG key ID: 4DFEBCB8316A8B95

View file

@ -36,7 +36,7 @@
[own] [own]
(let [shape (rum/react drawing-shape) (let [shape (rum/react drawing-shape)
position (rum/react drawing-position)] position (rum/react drawing-position)]
(when shape (when (and shape position)
(-> (assoc shape :drawing? true) (-> (assoc shape :drawing? true)
(geom/resize position) (geom/resize position)
(uusc/render-shape identity))))) (uusc/render-shape identity)))))