mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 20:01:11 +00:00
[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:
parent
5f3c07c0f6
commit
7cb1299ac2
1 changed files with 3 additions and 6 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue