*** empty log message ***

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@5796 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
enrico 2000-01-17 20:01:16 +00:00
parent 8f44538eac
commit e705674054
2 changed files with 21 additions and 2 deletions

View file

@ -777,8 +777,22 @@ NSPoint rotatePoint(NSPoint p, NSPoint centre, float angle);
associatedPoints:(NSPoint *)points
{
PathElement *elm = [pathElements objectAtIndex: index];
points = [elm points];
return [elm type];
NSBezierPathElementType type = [elm type];
NSPoint *p = [elm points];
if(type == NSBezierPathElementMoveTo || type == NSBezierPathElementLineTo) {
points[0].x = p[0].x;
points[0].y = p[0].y;
} else if(type == NSBezierPathElementCurveTo) {
points[0].x = p[0].x;
points[0].y = p[0].y;
points[1].x = p[1].x;
points[1].y = p[1].y;
points[2].x = p[2].x;
points[2].y = p[2].y;
}
return type;
}
- (void)removeLastElement