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.)
This commit is contained in:
Antoine Mercadal
2013-06-12 13:21:46 -07:00
parent b0b0452647
commit 29c336f7b8
+2 -2
View File
@@ -147,8 +147,8 @@ var DefaultLineWidth = 1.0;
{
_path = CGPathCreateMutable();
_lineWidth = [[self class] defaultLineWidth];
_lineDashesPhase = 1;
_lineDashes = [0];
_lineDashesPhase = 0;
_lineDashes = [];
}
return self;