fixed the bug uncovered by the test in the previous commit (to 2htdp/tests/test-image.ss)
svn: r17499
This commit is contained in:
parent
01c507c1ff
commit
07fcfd8eee
|
@ -471,8 +471,8 @@
|
||||||
(rotated-rectangular-bounding-box w h (text-angle atomic-shape)))]
|
(rotated-rectangular-bounding-box w h (text-angle atomic-shape)))]
|
||||||
[(bitmap? atomic-shape)
|
[(bitmap? atomic-shape)
|
||||||
(let ([bb (bitmap-raw-bitmap atomic-shape)])
|
(let ([bb (bitmap-raw-bitmap atomic-shape)])
|
||||||
(rotated-rectangular-bounding-box (send bb get-width)
|
(rotated-rectangular-bounding-box (* (send bb get-width) (bitmap-x-scale atomic-shape))
|
||||||
(send bb get-height)
|
(* (send bb get-height) (bitmap-y-scale atomic-shape))
|
||||||
(bitmap-angle atomic-shape)))]
|
(bitmap-angle atomic-shape)))]
|
||||||
[else
|
[else
|
||||||
(fprintf (current-error-port) "using bad bounding box for ~s\n" atomic-shape)
|
(fprintf (current-error-port) "using bad bounding box for ~s\n" atomic-shape)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user