Hi,
In NSParagraphStyle: - encodeWithCoder: we have:
...
locations[count] = [tab location];
types[count] = [tab tabStopType];
...
but we should have:
locations[i] = [tab location];
types[i] = [tab tabStopType];
Here's is the ChangeLog
2002-01-15 Ludovic Marcotte <[EMAIL PROTECTED]>
* Source/NSParagraphStyle.m ([NSParagraphStyle -encodeWithCoder:])
fixed the index used for our locations and type arrays from
count to it.
This fixes the encoding of NSAttributedString <AppKit> objects.
Thanks a lot,
Ludovic
--
Live as if you were to die tomorrow.
Learn as if you were to live forever.
- Gandhi
Index: core/gui/Source/NSParagraphStyle.m
===================================================================
RCS file: /cvsroot/gnustep/gnustep/core/gui/Source/NSParagraphStyle.m,v
retrieving revision 1.6
diff -r1.6 NSParagraphStyle.m
338,339c338,339
< locations[count] = [tab location];
< types[count] = [tab tabStopType];
---
> locations[i] = [tab location];
> types[i] = [tab tabStopType];