[FIX] TextStreamFix
Tim Olson
tim at io.com
Fri May 9 15:13:11 UTC 2003
from preamble:
"Change Set: TextStreamFix
Date: 9 May 2003
Author: Tim Olson
When a Text was appended to a TextStream with nextPutAll: and the stream
buffer was not large enough, the Text was copied an element at a time to
trigger stream buffer growth. However, copying an element at a time
only copied the Text's string, not the attribute run array, so
attributes were lost. This fix checks for the growth condition first,
and triggers it so that the standard replaceFrom:to:with method is used
when copying the Text. "!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: TextStreamFix.cs.gz
Type: application/octet-stream
Size: 654 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20030509/0e180165/TextStreamFix.cs.obj
More information about the Squeak-dev
mailing list
|