mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 15:11:37 +00:00
copyWithZone fix
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@6411 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
ac392d21ad
commit
e0cf43097e
2 changed files with 7 additions and 7 deletions
|
@ -187,11 +187,11 @@ static GSFontEnumerator *sharedEnumerator = nil;
|
|||
else
|
||||
{
|
||||
copy = (GSFontInfo*) NSCopyObject (self, 0, zone);
|
||||
[copy->fontDictionary copyWithZone: zone];
|
||||
[copy->fontName copyWithZone: zone];
|
||||
[copy->familyName copyWithZone: zone];
|
||||
[copy->weight copyWithZone: zone];
|
||||
[copy->encodingScheme copyWithZone: zone];
|
||||
copy->fontDictionary = [fontDictionary copyWithZone: zone];
|
||||
copy->fontName = [fontName copyWithZone: zone];
|
||||
copy->familyName = [familyName copyWithZone: zone];
|
||||
copy->weight = [weight copyWithZone: zone];
|
||||
copy->encodingScheme = [encodingScheme copyWithZone: zone];
|
||||
}
|
||||
return copy;
|
||||
}
|
||||
|
|
|
@ -211,8 +211,8 @@ void setNSFont(NSString* key, NSFont* font)
|
|||
else
|
||||
{
|
||||
new_font = (NSFont *)NSCopyObject(self, 0, zone);
|
||||
[new_font->fontName copyWithZone: zone];
|
||||
[new_font->fontInfo copyWithZone: zone];
|
||||
new_font->fontName = [fontName copyWithZone: zone];
|
||||
new_font->fontInfo = [fontInfo copyWithZone: zone];
|
||||
}
|
||||
return new_font;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue