Revision: 6977
http://skim-app.svn.sourceforge.net/skim-app/?rev=6977&view=rev
Author: hofman
Date: 2010-12-15 00:37:54 +0000 (Wed, 15 Dec 2010)
Log Message:
-----------
only use dashed line for drawing freehand on 10.6, as this is not supported on
10.5
Modified Paths:
--------------
trunk/SKPDFView.m
Modified: trunk/SKPDFView.m
===================================================================
--- trunk/SKPDFView.m 2010-12-14 22:08:16 UTC (rev 6976)
+++ trunk/SKPDFView.m 2010-12-15 00:37:54 UTC (rev 6977)
@@ -3273,14 +3273,14 @@
if (([theEvent modifierFlags] & NSShiftKeyMask) && [[activeAnnotation
type] isEqualToString:SKNInkString] && [[activeAnnotation page] isEqual:page]) {
pathColor = [[activeAnnotation color] retain];
[bezierPath setLineWidth:[activeAnnotation lineWidth]];
- if ([activeAnnotation borderStyle] == kPDFBorderStyleDashed) {
+ if (floor(NSAppKitVersionNumber) > NSAppKitVersionNumber10_5 &&
[activeAnnotation borderStyle] == kPDFBorderStyleDashed) {
[bezierPath setDashPattern:[activeAnnotation dashPattern]];
[bezierPath setLineCapStyle:NSButtLineCapStyle];
}
} else {
[self setActiveAnnotation:nil];
[bezierPath setLineWidth:[[NSUserDefaults standardUserDefaults]
floatForKey:SKInkNoteLineWidthKey]];
- if ((PDFBorderStyle)[[NSUserDefaults standardUserDefaults]
integerForKey:SKInkNoteLineStyleKey] == kPDFBorderStyleDashed) {
+ if (floor(NSAppKitVersionNumber) > NSAppKitVersionNumber10_5 &&
(PDFBorderStyle)[[NSUserDefaults standardUserDefaults]
integerForKey:SKInkNoteLineStyleKey] == kPDFBorderStyleDashed) {
[bezierPath setDashPattern:[[NSUserDefaults standardUserDefaults]
arrayForKey:SKInkNoteDashPatternKey]];
[bezierPath setLineCapStyle:NSButtLineCapStyle];
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit