Marcel Taeumel uploaded a new version of Morphic to project The Trunk:
http://source.squeak.org/trunk/Morphic-mt.866.mcz==================== Summary ====================
Name: Morphic-mt.866
Author: mt
Time: 12 April 2015, 3:44:51.855 pm
UUID: f59e94d0-28a4-8841-a25c-2db073d92d40
Ancestors: Morphic-mt.865
Fix for filter highlight: Now correctly converts items into strings just like the display-routine does.
=============== Diff against Morphic-mt.865 ===============
Item was changed:
----- Method: LazyListMorph>>getFilterOffsets: (in category 'list access') -----
getFilterOffsets: row
"Calculate matching character indexes for the current filter term."
| item filter filterWidth offsets currentIndex |
filter := listSource filterTerm.
filter ifEmpty: [^ Array empty].
filterWidth := font widthOfString: filter.
+ item := (self item: row) asStringOrText asString. "See row drawing. Strings only."
- item := self item: row.
offsets := OrderedCollection new.
currentIndex := 1.
[currentIndex > 0] whileTrue: [
currentIndex := item findString: filter startingAt: currentIndex caseSensitive: false.
currentIndex > 0 ifTrue: [ | left |
left := font widthOfString: item from: 1 to: currentIndex-1.
offsets addLast: (left to: left + filterWidth).
currentIndex := currentIndex + 1] ].
^ offsets!