mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 17:10:48 +00:00
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:
parent
3e2c8971f8
commit
e2fb1b2e62
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue