[squeak-dev] The Trunk: Graphics-jr.425.mcz

commits at source.squeak.org commits at source.squeak.org
Thu Feb 20 13:26:56 UTC 2020


Marcel Taeumel uploaded a new version of Graphics to project The Trunk:
http://source.squeak.org/trunk/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: ' )'.!



More information about the Squeak-dev mailing list