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:
parent
f2431bd819
commit
7eb1a4ba42
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue
Block a user