mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-25 05:20:54 +00:00
Internal storage fix.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7553 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
ef0f89c568
commit
8bde8b0bb1
1 changed files with 3 additions and 2 deletions
|
@ -73,7 +73,7 @@
|
|||
GSTextInfo *info = (GSTextInfo*)NSAllocateObject(self, 0, z);
|
||||
|
||||
info->loc = l;
|
||||
info->attrs = [a copy];
|
||||
info->attrs = [a copyWithZone: z];
|
||||
return info;
|
||||
}
|
||||
|
||||
|
@ -370,13 +370,14 @@ _attributesAtIndexEffectiveRange(
|
|||
|
||||
- (NSString*) string
|
||||
{
|
||||
return textChars;
|
||||
return AUTORELEASE([textChars copyWithZone: NSDefaultMallocZone()]);
|
||||
}
|
||||
|
||||
- (NSDictionary*) attributesAtIndex: (unsigned)index
|
||||
effectiveRange: (NSRange*)aRange
|
||||
{
|
||||
unsigned dummy;
|
||||
|
||||
return _attributesAtIndexEffectiveRange(
|
||||
index, aRange, [textChars length], infoArray, &dummy);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue