Revision: 3092
          http://skim-app.svn.sourceforge.net/skim-app/?rev=3092&view=rev
Author:   hofman
Date:     2007-10-29 05:51:35 -0700 (Mon, 29 Oct 2007)

Log Message:
-----------
Do Tiger bugfix only on Tiger.

Modified Paths:
--------------
    trunk/SKPDFAnnotationNote.m

Modified: trunk/SKPDFAnnotationNote.m
===================================================================
--- trunk/SKPDFAnnotationNote.m 2007-10-29 12:26:20 UTC (rev 3091)
+++ trunk/SKPDFAnnotationNote.m 2007-10-29 12:51:35 UTC (rev 3092)
@@ -1065,12 +1065,14 @@
 
 // fix a bug in PDFKit, the color space sometimes is not correct
 - (void)drawWithBox:(CGPDFBox)box inContext:(CGContextRef)context {
-    CGContextSaveGState(context);
-    SKCGContextSetDefaultRGBColorSpace(context);
-    
+    if (floor(NSAppKitVersionNumber) <= 824) {
+        CGContextSaveGState(context);
+        SKCGContextSetDefaultRGBColorSpace(context);
+    }
     [super drawWithBox:box inContext:context];
-    
-    CGContextRestoreGState(context);
+    if (floor(NSAppKitVersionNumber) <= 824) {
+        CGContextRestoreGState(context);
+    }
 }
 
 - (float)rowHeight {


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to