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

commits at source.squeak.org commits at source.squeak.org
Sun Dec 22 14:05:37 UTC 2019


Marcel Taeumel uploaded a new version of Morphic to project The Trunk:
http://source.squeak.org/trunk/Morphic-mt.1611.mcz

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

Name: Morphic-mt.1611
Author: mt
Time: 22 December 2019, 3:05:29.126349 pm
UUID: cf7063f3-6f6c-9a4b-b111-c488509419af
Ancestors: Morphic-mt.1610

Fixes text-emphasis bug in menu items.

Not sure whether the extra storage of emphasis is really necessary in the long term.

=============== Diff against Morphic-mt.1610 ===============

Item was changed:
  ----- Method: StringMorph>>initializeFromText: (in category 'initialization') -----
  initializeFromText: aText
  
  	| scanner |
  	scanner := StringMorphAttributeScanner new initializeFromStringMorph: self.
  
  	(aText attributesAt: 1 forStyle: self font textStyle)
  		do: [:attr | attr emphasizeScanner: scanner].
  
+ 	font := scanner font emphasized: scanner emphasis.
  	emphasis := scanner emphasis.
+ 	
- 	font := scanner font.
  	color := scanner textColor.
  
  	self contents: aText string.!



More information about the Squeak-dev mailing list