mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 05:10:38 +00:00
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:
parent
6807f49761
commit
961e797c53
1 changed files with 7 additions and 0 deletions
|
@ -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++)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue