Added defensive check for get-admin in get-enclosing-editor-frame.
svn: r10466
This commit is contained in:
parent
238fb76afd
commit
259b6fb87c
|
@ -792,7 +792,7 @@ profile todo:
|
||||||
(define (get-enclosing-editor-frame an-editor)
|
(define (get-enclosing-editor-frame an-editor)
|
||||||
(let ([admin (send an-editor get-admin)])
|
(let ([admin (send an-editor get-admin)])
|
||||||
(cond
|
(cond
|
||||||
[(is-a? admin editor-snip-editor-admin<%>)
|
[(and admin (is-a? admin editor-snip-editor-admin<%>))
|
||||||
(let* ([enclosing-editor-snip (send admin get-snip)]
|
(let* ([enclosing-editor-snip (send admin get-snip)]
|
||||||
[editor-snip-admin (send enclosing-editor-snip get-admin)]
|
[editor-snip-admin (send enclosing-editor-snip get-admin)]
|
||||||
[enclosing-editor (send editor-snip-admin get-editor)])
|
[enclosing-editor (send editor-snip-admin get-editor)])
|
||||||
|
|
Loading…
Reference in New Issue
Block a user