mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 20:50:38 +00:00
*** 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:
parent
e52de6929e
commit
3ba115b589
2 changed files with 21 additions and 2 deletions
|
@ -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>
|
||||
|
||||
* Source/NSBundleAdditions.m: Catch exceptions when loading nib so
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue