Mercurial > hg > indyvon
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 diff
1.1 --- a/src/indyvon/views.clj Tue Nov 18 17:00:35 2014 +0300 1.2 +++ b/src/indyvon/views.clj Sat Nov 22 03:49:31 2014 +0300 1.3 @@ -293,7 +293,9 @@ 1.4 (render! [_] 1.5 (with-hints* hints render! view)) 1.6 (geometry [_] 1.7 - (with-hints* hints geometry view)))) 1.8 + (if (bound? #'*graphics*) 1.9 + (with-hints* hints geometry view) 1.10 + (geometry view))))) 1.11 1.12 ;; 1.13 ;; Measuring time