Revision: 3396
          http://skim-app.svn.sourceforge.net/skim-app/?rev=3396&view=rev
Author:   hofman
Date:     2008-02-12 10:46:22 -0800 (Tue, 12 Feb 2008)

Log Message:
-----------
Use black color for diamond end line style adorn images on Leopard, as it is 
supported now.

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

Modified: trunk/SKLineInspector.m
===================================================================
--- trunk/SKLineInspector.m     2008-02-12 17:19:58 UTC (rev 3395)
+++ trunk/SKLineInspector.m     2008-02-12 18:46:22 UTC (rev 3396)
@@ -325,7 +325,8 @@
     [path lineToPoint:NSMakePoint(8.0, 2.0)];
     [path closePath];
     [path setLineWidth:2.0];
-    [[NSColor colorWithCalibratedWhite:0.0 alpha:0.65] setStroke];
+    if (floor(NSAppKitVersionNumber) <= NSAppKitVersionNumber10_4)
+        [[NSColor colorWithCalibratedWhite:0.0 alpha:0.65] setStroke];
     [path stroke];
     [image unlockFocus];
     [startLineStyleButton setImage:image forSegment:kPDFLineStyleDiamond];
@@ -342,7 +343,8 @@
     [path lineToPoint:NSMakePoint(16.0, 2.0)];
     [path closePath];
     [path setLineWidth:2.0];
-    [[NSColor colorWithCalibratedWhite:0.0 alpha:0.65] setStroke];
+    if (floor(NSAppKitVersionNumber) <= NSAppKitVersionNumber10_4)
+        [[NSColor colorWithCalibratedWhite:0.0 alpha:0.65] setStroke];
     [path stroke];
     [image unlockFocus];
     [endLineStyleButton setImage:image forSegment:kPDFLineStyleDiamond];


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: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Skim-app-commit mailing list
Skim-app-commit@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to