*** 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 Sersale 2000-01-17 20:01:16 +00:00
parent e52de6929e
commit 3ba115b589
2 changed files with 21 additions and 2 deletions

View file

@ -1,3 +1,8 @@
Mon Jan 17 21:15:00 2000 Enrico Sersale <enrico@imago.ro>
* Source/NSBezierPath.m (-elementTypeAtIndex:associatedPoints:]):
Changed to set the associatedPoints correctly.
Mon Jan 17 6:32:00 1999 Richard Frith-Macdonald <richard@brainstorm.co.uk> Mon Jan 17 6:32:00 1999 Richard Frith-Macdonald <richard@brainstorm.co.uk>
* Source/NSBundleAdditions.m: Catch exceptions when loading nib so * Source/NSBundleAdditions.m: Catch exceptions when loading nib so

View file

@ -777,8 +777,22 @@ NSPoint rotatePoint(NSPoint p, NSPoint centre, float angle);
associatedPoints:(NSPoint *)points associatedPoints:(NSPoint *)points
{ {
PathElement *elm = [pathElements objectAtIndex: index]; PathElement *elm = [pathElements objectAtIndex: index];
points = [elm points]; NSBezierPathElementType type = [elm type];
return [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 - (void)removeLastElement