[squeak-dev] The Trunk: Multilingual-cmm.106.mcz

commits at source.squeak.org commits at source.squeak.org
Tue Mar 23 19:09:16 UTC 2010

Chris Muller uploaded a new version of Multilingual to project The Trunk:

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

Name: Multilingual-cmm.106
Author: cmm
Time: 23 March 2010, 2:07:45.842 pm
UUID: 5df01747-88b8-4df7-80ad-dd2d3d263a04
Ancestors: Multilingual-nice.105

Fix for potential stack-overflow when trying to embed a Morph into a TextMorph.

=============== Diff against Multilingual-nice.105 ===============

Item was changed:
  ----- Method: MultiCharacterScanner>>placeEmbeddedObject: (in category 'scanning') -----
  placeEmbeddedObject: anchoredMorph
  	"Place the anchoredMorph or return false if it cannot be placed.
  	In any event, advance destX by its width."
  	| w |
  	"Workaround: The following should really use #textAnchorType"
  	anchoredMorph relativeTextAnchorPosition ifNotNil:[^true].
+ 	destX _ destX + (w _ anchoredMorph width).
- 	destX := destX + (w := anchoredMorph width).
  	(destX > rightMargin and: [(leftMargin + w) <= rightMargin])
  		ifTrue: ["Won't fit, but would on next line"
  				^ false].
+ 	lastIndex _ lastIndex + 1.
+ 	"self setFont."  "Force recalculation of emphasis for next run"
- 	lastIndex := lastIndex + 1.
- 	self setFont.  "Force recalculation of emphasis for next run"
  	^ true!

More information about the Squeak-dev mailing list