changeset 161:acda6344bcb7

Fixed views/hinted: graphics context is not always bound in geometry.
author Mikhail Kryshen <mikhail@kryshen.net>
date Sat, 22 Nov 2014 03:49:31 +0300
parents d149f03d1feb
children 4aa8979938ee
files src/indyvon/views.clj
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/indyvon/views.clj	Tue Nov 18 17:00:35 2014 +0300
+++ b/src/indyvon/views.clj	Sat Nov 22 03:49:31 2014 +0300
@@ -293,7 +293,9 @@
     (render! [_]
       (with-hints* hints render! view))
     (geometry [_]
-      (with-hints* hints geometry view))))
+      (if (bound? #'*graphics*)
+        (with-hints* hints geometry view)
+        (geometry view)))))
 
 ;;
 ;; Measuring time