[squeak-dev] The Trunk: Graphics-nice.247.mcz

commits at source.squeak.org commits at source.squeak.org
Thu Oct 3 13:00:48 UTC 2013


Nicolas Cellier uploaded a new version of Graphics to project The Trunk:
http://source.squeak.org/trunk/Graphics-nice.247.mcz

==================== Summary ====================

Name: Graphics-nice.247
Author: nice
Time: 3 October 2013, 2:59:08.347 pm
UUID: 17c8bf48-139a-42f5-8032-ae3045f4b265
Ancestors: Graphics-nice.246

Restore correct width of embedded morphs (recent regression).

=============== Diff against Graphics-nice.246 ===============

Item was changed:
  ----- Method: CharacterBlockScanner>>retrieveLastCharacterWidth (in category 'private') -----
  retrieveLastCharacterWidth
  	| lastCharacter |
  	lastIndex > text size ifTrue: [^lastCharacterWidth := 0].
+ 	specialWidth ifNotNil: [^lastCharacterWidth := specialWidth].
  	lastCharacter := text at: lastIndex.
  	(lastCharacter charCode >= 256 or: [(stopConditions at: lastCharacter charCode + 1) isNil])
  		ifTrue: [lastCharacterWidth := font widthOf: (text at: lastIndex)].
  	"if last character was a stop condition, then the width is already set"
  	^lastCharacterWidth!



More information about the Squeak-dev mailing list