When appending an arc to a bezier path, draw the line from the current

point to the arc start point - unless this is the first element of the path


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10693 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Nicola Pero 2001-08-13 13:08:22 +00:00
parent c62d49de4a
commit 93bcc21cfa

View file

@ -911,8 +911,20 @@ static float default_miter_limit = 10.0;
/* Start point */
p0 = NSMakePoint (center.x + radius * cos (startAngle_rad),
center.y + radius * sin (startAngle_rad));
[self moveToPoint: p0];
if ([self elementCount] == 0)
{
[self moveToPoint: p0];
}
else
{
NSPoint ps = [self currentPoint];
if (p0.x != ps.x || p0.y != ps.y)
{
[self lineToPoint: p0];
}
}
while ((clockwise) ? (startAngle_rad > endAngle_rad)
: (startAngle_rad < endAngle_rad))
{