Skip to content

Commit

Permalink
fix search of element in SpCollectionListModel.
Browse files Browse the repository at this point in the history
It should use equality. Bueg introduced in commit 3967790.
It has already been fixed in Pharo 13. see 1b48d5a and 23bc559
  • Loading branch information
demarey committed Dec 13, 2024
1 parent 0cf85eb commit af85d94
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Spec2-Core/SpCollectionListModel.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ SpCollectionListModel >> hasElementAt: index [
{ #category : 'accessing' }
SpCollectionListModel >> indexOf: anItem ifAbsent: aBlock [

^ collection identityIndexOf: anItem ifAbsent: aBlock
^ collection indexOf: anItem ifAbsent: aBlock
]

{ #category : 'initialization' }
Expand Down
2 changes: 1 addition & 1 deletion src/Spec2-Core/SpDropListItem.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ SpDropListItem >> = anObject [

self == anObject ifTrue: [ ^ true ].
self class = anObject class ifFalse: [ ^ false ].
^ self label = anObject label and: [ action = anObject action ]
^ self model = anObject model
]

{ #category : 'protocol' }
Expand Down

0 comments on commit af85d94

Please sign in to comment.