class: Collection
authorClaus Gittinger <cg@exept.de>
Mon, 13 Apr 2015 16:02:13 +0200
changeset 18211 d4c844b6a858
parent 18208 2860af6dfc2d
child 18212 d8a2b0f3efff
child 18213 c0d479ac5af6
class: Collection changed: #printElementsOn: limit calculation
Collection.st
--- a/Collection.st	Fri Apr 10 16:22:21 2015 +0200
+++ b/Collection.st	Mon Apr 13 16:02:13 2015 +0200
@@ -4089,12 +4089,13 @@
      if aStream is not positionable, create an temporary positionable stream
      (needed for limit calculation)
     "
+    limit := self maxPrint.
     aStream isPositionable ifTrue:[
         s := aStream.
+        limit := s position + limit.
     ] ifFalse:[
         s := WriteStream on:(String uninitializedNew:50).
     ].
-    limit := s position + self maxPrint.
 
     self printElementsDo:[:element |
         firstOne ifFalse:[
@@ -5747,11 +5748,11 @@
 !Collection class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libbasic/Collection.st,v 1.361 2015-03-28 09:01:50 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libbasic/Collection.st,v 1.362 2015-04-13 14:02:13 cg Exp $'
 !
 
 version_CVS
-    ^ '$Header: /cvs/stx/stx/libbasic/Collection.st,v 1.361 2015-03-28 09:01:50 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libbasic/Collection.st,v 1.362 2015-04-13 14:02:13 cg Exp $'
 ! !