The Trunk: Morphic-mt.1611.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

The Trunk: Morphic-mt.1611.mcz

commits-2
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.!