mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 20:50:48 +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
78ccfb121d
commit
a00dc20735
1 changed files with 14 additions and 2 deletions
|
@ -911,8 +911,20 @@ static float default_miter_limit = 10.0;
|
||||||
/* Start point */
|
/* Start point */
|
||||||
p0 = NSMakePoint (center.x + radius * cos (startAngle_rad),
|
p0 = NSMakePoint (center.x + radius * cos (startAngle_rad),
|
||||||
center.y + radius * sin (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)
|
while ((clockwise) ? (startAngle_rad > endAngle_rad)
|
||||||
: (startAngle_rad < endAngle_rad))
|
: (startAngle_rad < endAngle_rad))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue