The Trunk: Morphic-ct.2219.mcz

[email protected] Mon, 27 Jul 2026 07:09:11 0000
Newsgroups gmane.comp.lang.smalltalk.squeak.general
Message-ID <[email protected]>
Marcel Taeumel uploaded a new version of Morphic to project The Trunk:
http://source.squeak.org/trunk/Morphic-ct.2219.mcz

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

Name: Morphic-ct.2219
Author: ct
Time: 7 July 2026, 8:38:34.137015 pm
UUID: 17366f71-7051-4939-8d59-ee358d8e5411
Ancestors: Morphic-ct.2218

Fixes a slip updating paths during filtering in trees.

=============== Diff against Morphic-ct.2218 ===============

Item was changed:
  ----- Method: SimpleHierarchicalListMorph>>parentMorphOf: (in category 'selection') -----
  parentMorphOf: itemMorph
  	"Answers the parent morph for itemMorph or nil if there is none."
  
  	| wrapper |
  	wrapper := itemMorph complexContents.
  	^ (wrapper respondsTo: #parent)
  		ifFalse: [ | parentItemMorph |
  			parentItemMorph := itemMorph.
  			[parentItemMorph isNil
  				or: [parentItemMorph indentLevel = (itemMorph indentLevel -1)]]
+ 					whileFalse: [parentItemMorph := parentItemMorph submorphBefore].
+ 			parentItemMorph]
- 					whileFalse: [parentItemMorph := parentItemMorph submorphBefore]]
  		ifTrue: [
  			wrapper := wrapper parent.
  			scroller submorphs
  				detect: [:each | each complexContents == wrapper]
  				ifNone: [nil]]!

Squeak-dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]