2htdp/image: adjusted the image you get when parsing fails so that it draws inside its bounding box
This commit is contained in:
parent
69fb56189a
commit
02d8b5cebf
|
@ -320,7 +320,7 @@ has been moved out).
|
||||||
(let ([lst (parse (fetch (send f get-unterminated-bytes)))])
|
(let ([lst (parse (fetch (send f get-unterminated-bytes)))])
|
||||||
(cond
|
(cond
|
||||||
[(not lst)
|
[(not lst)
|
||||||
(make-image (make-ellipse 100 100 0 'solid "black")
|
(make-image (make-translate 50 50 (make-ellipse 100 100 0 'solid "black"))
|
||||||
(make-bb 100 100 100)
|
(make-bb 100 100 100)
|
||||||
#f
|
#f
|
||||||
#f)]
|
#f)]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user