[Cuis-dev] [DEFECT] Move of #magnitude to the complex package causes Form>>#magnifyBy: to fail.

Gerald Klix cuis.01 at klix.ch
Mon Mar 13 06:21:39 PDT 2023


Hi all, Hi Juan,

That's how #magnifyBy: is defined:

magnifyBy: scale
	"Answer a Form created as a scaling of the receiver.
	Scale may be a Float, and may be greater or less than 1.0."

	^ self magnify: self boundingBox by: scale
			smoothing: (scale magnitude < 1 ifTrue: [2] ifFalse: [1])


It comments states that it accepts a float, which does not work,
because `scale magnitude` causes a DNU.

Should I use the complex package?


Best Regards,

Gerald


More information about the Cuis-dev mailing list