Christoph Thiede uploaded a new version of Morphic to project The Treated Inbox: http://source.squeak.org/treated/Morphic-ct.2130.mcz
==================== Summary ====================
Name: Morphic-ct.2130 Author: ct Time: 11 September 2023, 6:18:59.713063 pm UUID: 3f9268df-f04d-4d4c-bfee-7651b41c1443 Ancestors: Morphic-mt.2122
Avoids installing a new editor in TextMorph when receiving #textStyle:. Regression from Morphic-ct.2060.
An editor is not expected before the TextMorph has been added to a world/owner. For instance, #fillsOwner: before #openInWorld was previously broken, and thus the BannerMorph required for Objectland.
Please review. I'm not entirely sure whether I identified the correct invariant or whether TextContainer>>#bounds should instead check for a nil owner. Do BannerMorph example openInWorld to reproduce.
=============== Diff against Morphic-mt.2122 ===============
Item was changed: ----- Method: TextMorph>>textStyle: (in category 'accessing') ----- textStyle: aTextStyle "Change the receiver's set of fonts to aTextStyle. You can access those fonts via the TextFontChange text attribute. If you want to enfore a specific font face or point size, use #font: instead. NOTE THAT you must provide either a freshly created instance of TextStyle or a copy of an existing one. NEVER use, for example, TextStyle class >> #default directly. Also see senders and implementors of #asNewTextStyle."
| previousSelection | textStyle := aTextStyle. + previousSelection := editor ifNotNil: [editor selectionInterval]. - previousSelection := self selectionInterval. self releaseParagraph; changed. previousSelection ifNotNil: [self selectionInterval: previousSelection].!
packages@lists.squeakfoundation.org