[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:
Fred Kiefer 2001-08-14 22:37:11 +00:00
parent 5f3c07c0f6
commit 7cb1299ac2

View file

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