ListView.st
changeset 5885 38ee27139eb1
parent 5884 6c412774e33a
child 5898 dd3d011daf37
child 5924 6ad64956bfcd
--- a/ListView.st	Fri Sep 23 17:50:57 2016 +0200
+++ b/ListView.st	Wed Sep 28 16:04:06 2016 +0200
@@ -3696,8 +3696,8 @@
     ] ifFalse:[
         checkedLinesForWidthOfContentsComputation == 0 ifTrue:[
             start := firstLineShown.
-            stop := start + nLinesShown - 1.
-        ] ifFalse:[    
+            stop := (start + nLinesShown - 1) min:list size.
+        ] ifFalse:[
             checkedLinesForWidthOfContentsComputation > 0 ifTrue:[
                 start := 1.
                 stop := (checkedLinesForWidthOfContentsComputation min:list size)