fix decoding bug

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@12117 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-Macdonald 2002-01-16 11:45:36 +00:00
parent 9f924be488
commit c5b6fc310b
2 changed files with 8 additions and 2 deletions

View file

@ -1,3 +1,9 @@
2002-01-15 Ludovic Marcotte <ludovic@Sophos.ca>
* Source/NSParagraphStyle.m ([NSParagraphStyle -encodeWithCoder:])
fixed the index used for our locations and type arrays from
count to it.
2002-01-15 Adam Fedor <fedor@gnu.org>
* Source/NSApplication.m (-finishLaunching): Make main menu key

View file

@ -335,8 +335,8 @@ static NSParagraphStyle *defaultStyle = nil;
{
NSTextTab *tab = [_tabStops objectAtIndex: i];
locations[count] = [tab location];
types[count] = [tab tabStopType];
locations[i] = [tab location];
types[i] = [tab tabStopType];
}
[aCoder encodeArrayOfObjCType: @encode(float)
count: count