use == when comparing list for being the same
authorClaus Gittinger <cg@exept.de>
Wed, 25 Feb 2004 17:13:43 +0100
changeset 2911 f9dc65c59f63
parent 2910 7b013a87a482
child 2912 b302a46fc21e
use == when comparing list for being the same (cannot use = as that sometimes does not care for emphasis)
ListView.st
--- 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 $'
 ! !