release mred internal lock during canvas set-editor super call

svn: r11748
This commit is contained in:
Matthew Flatt 2008-09-14 14:48:08 +00:00
parent 18176568c7
commit afd3cd3729
2 changed files with 4 additions and 2 deletions

View File

@ -350,4 +350,3 @@
(vi vertical-inset))
(unless (or (eq? horizontal-inset 5))
(hi horizontal-inset))))))

View File

@ -117,7 +117,10 @@
[(edit) (l edit #t)]
[(edit redraw?)
(let ([old-edit (get-editor)])
(super set-editor edit redraw?)
;; An exception here means we end up in a bad state:
(as-exit (lambda ()
;; set-editor can invoke callbacks:
(super set-editor edit redraw?)))
(let ([mred (wx->mred this)])
(when mred