last world draw shouldn't restore old draw; Closes PR 11994

This commit is contained in:
Matthias Felleisen 2011-06-22 10:52:53 -04:00
parent 52825c68a1
commit b00b2e318a

View File

@ -251,10 +251,8 @@
(begin (begin
(define/public (name arg ...) (define/public (name arg ...)
(define (last-draw) (define (last-draw)
(define draw0 draw) (set! draw last-picture)
(dynamic-wind (lambda () (set! draw last-picture)) (pdraw))
(lambda () (pdraw))
(lambda () (set! draw draw0))))
(queue-callback (queue-callback
(lambda () (lambda ()
(with-handlers ([exn? (handler #t)]) (with-handlers ([exn? (handler #t)])