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

commits at source.squeak.org commits at source.squeak.org
Wed Jan 19 13:49:00 UTC 2022

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

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

Name: Morphic-mt.1849
Author: mt
Time: 19 January 2022, 2:48:54.503764 pm
UUID: c545f07c-1d2d-9949-937b-e576cc62f044
Ancestors: Morphic-mt.1848

Makes #getSelection in text fields more robust against models that are not initialized correctly.

=============== Diff against Morphic-mt.1848 ===============

Item was changed:
  ----- Method: PluggableTextMorph>>getSelection (in category 'model access') -----
+ 	"Answer the model's selection interval. Default to the null selection if path to model unknown or model not initialized correctly."
- 	"Answer the model's selection interval."
+ 	^ getSelectionSelector
+ 		ifNil: [1 to: 0]
+ 		ifNotNil: [(model perform: getSelectionSelector) ifNil: [1 to: 0]]!
- 	getSelectionSelector ifNil: [^1 to: 0].	"null selection"
- 	^model perform: getSelectionSelector!

More information about the Squeak-dev mailing list