Revision: 5850
http://skim-app.svn.sourceforge.net/skim-app/?rev=5850&view=rev
Author: hofman
Date: 2009-10-05 13:28:15 +0000 (Mon, 05 Oct 2009)
Log Message:
-----------
convert color to calibrated RGB before drawing in color cell, as PDFAnnotation
always converts colors to device RGB which draws an annoying little triangle in
the corner
Modified Paths:
--------------
trunk/SKColorCell.m
Modified: trunk/SKColorCell.m
===================================================================
--- trunk/SKColorCell.m 2009-10-05 13:01:34 UTC (rev 5849)
+++ trunk/SKColorCell.m 2009-10-05 13:28:15 UTC (rev 5850)
@@ -49,6 +49,7 @@
- (void)drawWithFrame:(NSRect)cellFrame inView:(NSView *)controlView {
NSColor *color = [self objectValue];
if ([color respondsToSelector:@selector(drawSwatchInRect:)]) {
+ color = [color colorUsingColorSpaceName:NSCalibratedRGBColorSpace];
NSRect rect = cellFrame;
CGFloat height = SKMin(NSWidth(cellFrame), NSHeight(cellFrame) - 1.0);
rect.origin.y = NSMinY(rect) + 0.5 * (NSHeight(cellFrame) - height);
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit