mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-22 12:00:45 +00:00
bump version of NSParagraphStyle, and fix the decoder
makes Grr happy again loading its gorm files OK Fred Kiefer git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@36646 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
316ee53b63
commit
494399d5f4
2 changed files with 15 additions and 2 deletions
|
@ -1,3 +1,7 @@
|
|||
2013-05-17 Sebastian Reitenbach <sebastia@l00-bugdead-prods.de>
|
||||
|
||||
* Source/NSParagraphStyle.m bump version, and fix decoder
|
||||
|
||||
2013-05-14 German A. Arias <german@xelalug.org>
|
||||
|
||||
* Source/NSFormCell.m: Add method -resetCursorRect:inView:.
|
||||
|
|
|
@ -236,7 +236,7 @@ static NSParagraphStyle *defaultStyle = nil;
|
|||
{
|
||||
/* Set the class version to 2, as the writing direction is now
|
||||
stored in the encoding */
|
||||
[self setVersion: 2];
|
||||
[self setVersion: 3];
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -494,9 +494,18 @@ static NSParagraphStyle *defaultStyle = nil;
|
|||
[aCoder decodeArrayOfObjCType: @encode(float)
|
||||
count: count
|
||||
at: locations];
|
||||
[aCoder decodeArrayOfObjCType: @encode(NSInteger)
|
||||
if ([aCoder versionForClassName: @"NSParagraphStyle"] >= 3)
|
||||
{
|
||||
[aCoder decodeArrayOfObjCType: @encode(NSInteger)
|
||||
count: count
|
||||
at: types];
|
||||
}
|
||||
else
|
||||
{
|
||||
[aCoder decodeArrayOfObjCType: @encode(int)
|
||||
count: count
|
||||
at: types];
|
||||
}
|
||||
for (i = 0; i < count; i++)
|
||||
{
|
||||
NSTextTab *tab;
|
||||
|
|
Loading…
Reference in a new issue