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
(define/public (name arg ...)
(define (last-draw)
(define draw0 draw)
(dynamic-wind (lambda () (set! draw last-picture))
(lambda () (pdraw))
(lambda () (set! draw draw0))))
(set! draw last-picture)
(pdraw))
(queue-callback
(lambda ()
(with-handlers ([exn? (handler #t)])