fix coerce-to-cache-image-snip

svn: r12973
This commit is contained in:
Matthew Flatt 2009-01-02 20:15:58 +00:00
parent e92b588985
commit b58664d1f8

View File

@ -277,6 +277,7 @@
;; coerce-to-cache-image-snip : image -> (is-a?/c cache-image-snip%)
(define (coerce-to-cache-image-snip snp)
(cond
[(is-a? snp cache-image-snip%) snp]
[(hash-table-get image-snip-cache snp (λ () #f)) => values]
[(is-a? snp image-snip%)
(let* ([bmp (send snp get-bitmap)]