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

Thiede, Christoph Christoph.Thiede at student.hpi.uni-potsdam.de
Wed Jan 19 13:50:18 UTC 2022


Thank you once again! :-)

________________________________
Von: Squeak-dev <squeak-dev-bounces at lists.squeakfoundation.org> im Auftrag von commits at source.squeak.org <commits at source.squeak.org>
Gesendet: Mittwoch, 19. Januar 2022 14:49:00
An: squeak-dev at lists.squeakfoundation.org; packages at lists.squeakfoundation.org
Betreff: [squeak-dev] The Trunk: Morphic-mt.1849.mcz

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

==================== 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') -----
  getSelection
+        "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!


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20220119/cfc43e14/attachment.html>


More information about the Squeak-dev mailing list