use new position-integer? predicate

the check is to avoid drawing check syntax arrows
that go too far away; this may not be really possible
anymore, but in the past the old limit could be hit with
a long file and an arrow that went its length
This commit is contained in:
Robby Findler 2013-08-09 06:08:15 -05:00
parent 9068341cb9
commit abec39a901

View File

@ -1432,7 +1432,7 @@ If the namespace does not, they are colored the unbound color.
(loop (send (send admin get-snip) get-editor))
#f)])))
(cond
[(and window (< -10000 x-off 10000) (< -10000 y-off 10000))
[(and window (position-integer? x-off) (position-integer? y-off))
(define (c n) (inexact->exact (round n)))
(define-values (gx gy) (send window client->screen (c x-off) (c y-off)))
(values gx gy gx gy)]