Corrected [GSBezierPath appendBezierPath:] to check the class of

the parameter and to keep the isFlat flag in sync.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@15065 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fred Kiefer 2002-11-24 01:05:20 +00:00
parent 6807f49761
commit 961e797c53

View file

@ -1622,6 +1622,13 @@ typedef struct _PathElement
PathElement elem;
int i, count;
if (![aPath isKindOfClass: isa])
{
[super appendBezierPath: aPath];
return;
}
flat = flat && ((GSBezierPath*)aPath)->flat;
count = [aPath elementCount];
for (i = 0; i < count; i++)