Fix "ill-typed" overriding of get-view method

The interface says the last argument of this method
is optional. The bug was found via TR.
This commit is contained in:
Asumu Takikawa 2013-10-18 15:11:27 -04:00
parent f2431bd819
commit 7eb1a4ba42

View File

@ -23,7 +23,7 @@
(get-view #f #f w h #f))
(def/override (get-view [maybe-box? x] [maybe-box? y] [maybe-box? w] [maybe-box? h]
[(make-or-false snip%) snip])
[(make-or-false snip%) [snip #f]])
(let ([admin (send editor get-admin)]
[zeros (lambda ()
(when x (set-box! x 0.0))