cannot check SmallInteger for nil
authorMichael Beyl <mb@exept.de>
Mon, 07 May 2007 16:16:47 +0200
changeset 3230 2a6d322554a3
parent 3229 9a5c9db952d2
child 3231 5dd5dd610d50
cannot check SmallInteger for nil
ListModelView.st
--- a/ListModelView.st	Fri May 04 16:51:48 2007 +0200
+++ b/ListModelView.st	Mon May 07 16:16:47 2007 +0200
@@ -1156,7 +1156,7 @@
      or nil if beyond of list.
     "
 
-    |cache
+    |cache yCache
      yAbs       "{ Class: SmallInteger}"
      size       "{ Class: SmallInteger}"
      ictr       "{ Class: SmallInteger}"
@@ -1172,8 +1172,10 @@
         ^ nil
     ].   
 
-    yRun := cache at:size ifAbsent:nil.
-    yRun isNil ifTrue:[ ^ nil ].    "/ out of list
+    yCache := cache at:size ifAbsent:nil.
+    yCache isNil ifTrue:[ ^ nil ].    "/ out of list
+
+    yRun := yCache.
 
     yAbs >= yRun ifTrue:[
         yAbs == yRun ifTrue:[ ^ size - 1].
@@ -1857,7 +1859,7 @@
 !ListModelView class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libwidg2/ListModelView.st,v 1.102 2007-05-04 14:51:48 ca Exp $'
+    ^ '$Header: /cvs/stx/stx/libwidg2/ListModelView.st,v 1.103 2007-05-07 14:16:47 mb Exp $'
 ! !
 
 ListModelView initialize!