Skip to content

Commit 2571a56

Browse files
committed
guard against surprising arrows
1 parent 41a8813 commit 2571a56

File tree

1 file changed

+4
-1
lines changed
  • drracket-core-lib/drracket/private/syncheck

1 file changed

+4
-1
lines changed

drracket-core-lib/drracket/private/syncheck/gui.rkt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2225,7 +2225,10 @@ If the namespace does not, they are colored the unbound color.
22252225
[else "leftup"]))
22262226
(drracket:arrow:draw-arrow dc start-x start-y end-x end-y dx dy
22272227
#:pen-width 2
2228-
#:%age %age
2228+
;; with especially strange macros, the calculations above
2229+
;; might produce numbers that are out of range, so we
2230+
;; just give up on the curved arrows in that case.
2231+
#:%age (if (and (number? %age) (not (<= -1 %age 1))) #f %age)
22292232
#:bb (list 0
22302233
#f
22312234
max-width-for-arrow

0 commit comments

Comments
 (0)