Add a missing check for when arrow-records might be #f

closes PR 13133
This commit is contained in:
Robby Findler 2012-09-21 16:19:28 -05:00
parent 9b6ff5d94d
commit c3a454aebf

View File

@ -1056,6 +1056,7 @@ If the namespace does not, they are colored the unbound color.
(invalidate-bitmap-cache 0 0 'display-end 'display-end))
(define/public (syncheck:build-popup-menu menu pos text)
(when arrow-records
(define arrow-record (hash-ref arrow-records text #f))
(when arrow-record
(define added-sep? #f)
@ -1128,7 +1129,7 @@ If the namespace does not, they are colored the unbound color.
arrow-record
start-selection
end-selection))))
(for-each (λ (f) (f menu)) add-menus)))
(for-each (λ (f) (f menu)) add-menus))))
(struct tooltip-spec (strings x y w h) #:transparent)