[squeak-dev] The Trunk: Morphic-mt.1915.mcz

commits at source.squeak.org commits at source.squeak.org
Tue Mar 1 12:46:13 UTC 2022

Marcel Taeumel uploaded a new version of Morphic to project The Trunk:

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

Name: Morphic-mt.1915
Author: mt
Time: 1 March 2022, 1:46:07.327867 pm
UUID: 224f3d6f-8716-4761-8abb-b5ed25ca2c61
Ancestors: Morphic-mt.1914

Fix init bug in StringMorph where font/emphasis initialization from text attributes forgot to init default fonts so that StringMorphAttributeScanner can do its magic with proper defaults, that is, not every text as a TextFontChange attribute. So that default must come from the StringMorph.

=============== Diff against Morphic-mt.1914 ===============

Item was changed:
  ----- Method: StringMorph>>initWithContents:font:emphasis: (in category 'initialization') -----
  initWithContents: aStringOrText font: aFont emphasis: emphasisCode 
  	self initialize.
+ 	self font: aFont emphasis: emphasisCode.
  	aStringOrText isText
  		ifTrue: [self initializeFromText: aStringOrText]
+ 		ifFalse: [self initializeFromString: aStringOrText].!
- 		ifFalse: [
- 			self initializeFromString: aStringOrText.
- 			self font: aFont emphasis: emphasisCode].!

More information about the Squeak-dev mailing list