[squeak-dev] The Inbox: Graphics-jr.425.mcz
Thiede, Christoph
Christoph.Thiede at student.hpi.uni-potsdam.de
Mon Dec 30 13:15:19 UTC 2019
Ah yes, we had also talked about this in [squeak-dev] LayoutFrame>>#printOn:<http://forum.world.st/LayoutFrame-printOn-tp5104021.html>.
Maybe we should define whether fractions are okay to be nil here. What is the advantage of nil fractions compared to zero fractions?
________________________________
Von: Squeak-dev <squeak-dev-bounces at lists.squeakfoundation.org> im Auftrag von commits at source.squeak.org <commits at source.squeak.org>
Gesendet: Montag, 30. Dezember 2019 03:11:52
An: squeak-dev at lists.squeakfoundation.org
Betreff: [squeak-dev] The Inbox: Graphics-jr.425.mcz
A new version of Graphics was added to project The Inbox:
http://source.squeak.org/inbox/Graphics-jr.425.mcz
==================== Summary ====================
Name: Graphics-jr.425
Author: jr
Time: 30 December 2019, 3:11:45.845402 am
UUID: 465fa95d-6a50-a84d-8b73-7e90a2b9d2b5
Ancestors: Graphics-pre.424
Fix message not understood when the right or bottom fraction of a LayoutFrame is nil.
=============== Diff against Graphics-pre.424 ===============
Item was changed:
----- Method: LayoutFrame>>printOn: (in category 'printing') -----
printOn: aStream
super printOn: aStream.
aStream nextPutAll: '( '.
{ {'l'. self leftFraction. self leftOffset}. {'t'. self topFraction. self topOffset}. {'r'. self rightFraction. self rightOffset}. {'b'. self bottomFraction. self bottomOffset} } do: [:spec |
aStream nextPutAll: spec first; space.
+ (spec second ifNil: [0]) printOn: aStream maxDecimalPlaces: 2.
- spec second printOn: aStream maxDecimalPlaces: 2.
aStream nextPutAll: ((spec third ifNil: [0]) >= 0 ifTrue: ['+'] ifFalse: ['-']).
(spec third ifNil: [0]) abs printOn: aStream maxDecimalPlaces: 0]
separatedBy: [aStream space].
aStream nextPutAll: ' )'.!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20191230/54765c84/attachment.html>
More information about the Squeak-dev
mailing list
|