use == when comparing list for being the same
(cannot use = as that sometimes does not care for emphasis)
--- a/ListView.st Tue Feb 24 22:34:41 2004 +0100
+++ b/ListView.st Wed Feb 25 17:13:43 2004 +0100
@@ -759,12 +759,16 @@
|oldFirst oldLeft nonStringsBefore fontHeightBefore
scrollToEnd scrollToTop newLeftOffset wText same|
+ "/ see if there is a change at all.
+ "/ use to compare using =, but thats not enough in case of emphasis change.
aCollection size == list size ifTrue:[
same := true.
aCollection size > 0 ifTrue:[
aCollection with:list do:[:eachNewLine :eachOldLine |
- ((eachNewLine species ~~ eachOldLine species)
- or:[eachNewLine ~= eachOldLine]) ifTrue:[
+ (eachNewLine == eachOldLine)
+"/ ((eachNewLine species == eachOldLine species)
+"/ and:[eachNewLine = eachOldLine])
+ ifFalse:[
same := false.
]
]
@@ -4445,5 +4449,5 @@
!ListView class methodsFor:'documentation'!
version
- ^ '$Header: /cvs/stx/stx/libwidg/ListView.st,v 1.290 2004-02-23 11:02:55 cg Exp $'
+ ^ '$Header: /cvs/stx/stx/libwidg/ListView.st,v 1.291 2004-02-25 16:13:43 cg Exp $'
! !