[BUG] VM crash with #magnify:by:smoothing: 0
Ned Konz
ned at bike-nomad.com
Mon Nov 25 19:40:12 UTC 2002
Fiddling around with StarBrowser, I entered this code:
doMorph: aMorph
| f scaleX scaleY |
f _ aMorph imageForm.
aMorph fullReleaseCachedState.
scaleY _ 14 / f height. "keep height invariant"
scaleX _ ((aMorph width * scaleY) <= 14)
ifTrue:
[scaleY] "the usual case; same scale factor, to preserve aspect
ratio"
ifFalse:
[self width / f width].
^(f magnify: f boundingBox by: (scaleX @ scaleY) smoothing: 0).
When I changed from smoothing: 2 to smoothing: 0 in the last line and
ran the method, the entire VM crashed without an error trace.
--
Ned Konz
http://bike-nomad.com
GPG key ID: BEEA7EFE
More information about the Squeak-dev
mailing list
|