AttributedString fix

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@7552 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
richard 2000-09-19 22:31:18 +00:00
parent 3e2c8971f8
commit e2fb1b2e62

View file

@ -72,7 +72,7 @@
GSAttrInfo *info = (GSAttrInfo*)NSAllocateObject(self, 0, z);
info->loc = l;
info->attrs = [a copy];
info->attrs = [a copyWithZone: z];
return info;
}
@ -337,7 +337,7 @@ _attributesAtIndexEffectiveRange(
- (NSString*) string
{
return _textChars;
return AUTORELEASE([_textChars copyWithZone: NSDefaultMallocZone()]);
}
- (NSDictionary*) attributesAtIndex: (unsigned)index