[initialize] removed obsolete check for default setting of

ImageComposition. In [copyWithZone:] copy the colour space, it
might be mutable.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10708 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
FredKiefer 2001-08-14 22:37:11 +00:00
parent d7c64edc9b
commit de949a0a83

View file

@ -60,11 +60,8 @@ static Class NSImageRep_class = NULL;
NSImageRep_class = self; NSImageRep_class = self;
imageReps = [[NSMutableArray alloc] initWithCapacity: 2]; imageReps = [[NSMutableArray alloc] initWithCapacity: 2];
obj = [[NSUserDefaults standardUserDefaults] [imageReps addObject: [NSBitmapImageRep class]];
stringForKey: @"ImageCompositing"]; //[imageReps addObject: [NSEPSImageRep class]];
if (!obj || [obj boolValue] == YES)
[imageReps addObject: [NSBitmapImageRep class]];
// [imageReps addObject: [NSEPSImageRep class]];
} }
} }
@ -489,7 +486,7 @@ static Class NSImageRep_class = NULL;
NSImageRep *copy; NSImageRep *copy;
copy = (NSImageRep*)NSCopyObject(self, 0, zone); copy = (NSImageRep*)NSCopyObject(self, 0, zone);
copy->_colorSpace = RETAIN(_colorSpace); copy->_colorSpace = [_colorSpace copyWithZone: zone];
return copy; return copy;
} }