mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 15:11:37 +00:00
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:
parent
c62d49de4a
commit
93bcc21cfa
1 changed files with 14 additions and 2 deletions
|
@ -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))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue