mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 15:11:37 +00:00
Return a winding count of 0 when the bezier path is empty.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27086 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
833dedb984
commit
6e3db9142d
2 changed files with 8 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2008-11-17 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Source/NSBezierPath.m: (-windingCountAtPoint:) Return 0 when the
|
||||
path is empty.
|
||||
|
||||
2008-11-17 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Source/NSApplication.m (-finishLaunching): Split up final
|
||||
|
|
|
@ -1418,6 +1418,9 @@ static int winding_curve(double_point from, double_point to, double_point c1,
|
|||
total = 0;
|
||||
count = [self elementCount];
|
||||
|
||||
if (count == 0)
|
||||
return 0;
|
||||
|
||||
/* 'Unroll' the first element to avoid compiler warnings. It has to be
|
||||
a MoveTo, anyway. */
|
||||
type = [self elementAtIndex: 0 associatedPoints: pts];
|
||||
|
|
Loading…
Reference in a new issue