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:
Adam Fedor 2000-04-03 03:14:45 +00:00
parent ac392d21ad
commit e0cf43097e
2 changed files with 7 additions and 7 deletions

View file

@ -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;
}

View file

@ -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;
}