* Source/NSBezierPath.m (-elementAtIndex:associatedPoints:): Fix

handling of close element.
Patch by Bluna Ratimonkey <object@gmail.com>.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@36304 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
fredkiefer 2013-03-08 08:59:18 +00:00
parent 7e3d936674
commit 7dca29c6f1
2 changed files with 7 additions and 2 deletions

View file

@ -861,8 +861,7 @@ static CGFloat default_miter_limit = 10.0;
for (i = index - 1; i >= 0; i--)
{
elm = GSIArrayItemAtIndex(_pathElements, i).ext;
type = elm.type;
if (type == NSMoveToBezierPathElement)
if (elm.type == NSMoveToBezierPathElement)
{
points[0] = elm.points[0];
break;