From 29c336f7b833ea7b2d5793dc9642c28f217257a3 Mon Sep 17 00:00:00 2001 From: Antoine Mercadal Date: Wed, 12 Jun 2013 13:21:46 -0700 Subject: [PATCH] Fixed: Wrong initial values for _lineDashesPhase and _lineDashes in CPBezierPath Firefox is not accepting the initial values for these two attributes, making it crash with an ILLEGAL VALUE error in any application using CPBezierPath (especially ones with CPPredicateEditor that is using bezier path to draw the selection arrows.) --- AppKit/CPBezierPath.j | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AppKit/CPBezierPath.j b/AppKit/CPBezierPath.j index 0ac27ec80..e6354fc51 100644 --- a/AppKit/CPBezierPath.j +++ b/AppKit/CPBezierPath.j @@ -147,8 +147,8 @@ var DefaultLineWidth = 1.0; { _path = CGPathCreateMutable(); _lineWidth = [[self class] defaultLineWidth]; - _lineDashesPhase = 1; - _lineDashes = [0]; + _lineDashesPhase = 0; + _lineDashes = []; } return self;