Skip to content

Commit 6cd1243

Browse files
dsward2dsward2
dsward2
authored and
dsward2
committed
In SVGPathEditor, an error was found in path editing of cubic curve segments where extra editing handles were added improperly for the "x0y0" and "x3y3" implied control points (reflections of "x1y1" and "x2y2", respectively). The extra handles did not function correctly, particularly for the curve continuity option. The x0y0 reflected handle should be drawn when the previous segment was a Moveto ("M" or "m") command. The x3y3 reflected handle should be drawn for the last segment of a cubic curve.
1 parent 68d4d2b commit 6cd1243

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

macSVG/MacSVG-Info.plist

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@
105105
<key>CFBundleSignature</key>
106106
<string>????</string>
107107
<key>CFBundleVersion</key>
108-
<string>0649</string>
108+
<string>0652</string>
109109
<key>LSApplicationCategoryType</key>
110110
<string>public.app-category.graphics-design</string>
111111
<key>LSMinimumSystemVersion</key>

macSVG/SVGDocument Classes/SVGPathEditor.m

+2-2
Original file line numberDiff line numberDiff line change
@@ -2303,14 +2303,14 @@ -(void) makePathHandles
23032303

23042304
if (segmentIdx >= (pathSegmentsCount - 1))
23052305
{
2306-
reflectX1Y1 = YES;
2306+
//reflectX1Y1 = YES;
23072307
reflectX2Y2 = YES;
23082308
}
23092309

23102310
if ((previousPathCommand == 'M') || (previousPathCommand == 'm'))
23112311
{
23122312
reflectX1Y1 = YES;
2313-
reflectX2Y2 = YES;
2313+
//reflectX2Y2 = YES;
23142314
}
23152315

23162316
[self addHandleForCubicCurveto:pathSegmentDictionary segmentIndex:segmentIdx

0 commit comments

Comments
 (0)