mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 20:50:48 +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
d7c64edc9b
commit
de949a0a83
1 changed files with 3 additions and 6 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue