mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2025-12-30 14:20:20 +01:00
Fixed XrPathClose to deal with empty path
This commit is contained in:
parent
c2824c4ded
commit
9824dc8944
2 changed files with 8 additions and 4 deletions
|
|
@ -168,6 +168,8 @@ XrPathLineTo(XrPath *path, const XPointDouble *pt)
|
|||
void
|
||||
XrPathClose(XrPath *path)
|
||||
{
|
||||
XrSubPathClose(path->tail);
|
||||
XrPathNewSubPath(path);
|
||||
if (path->tail) {
|
||||
XrSubPathClose(path->tail);
|
||||
XrPathNewSubPath(path);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
6
xrpath.c
6
xrpath.c
|
|
@ -168,6 +168,8 @@ XrPathLineTo(XrPath *path, const XPointDouble *pt)
|
|||
void
|
||||
XrPathClose(XrPath *path)
|
||||
{
|
||||
XrSubPathClose(path->tail);
|
||||
XrPathNewSubPath(path);
|
||||
if (path->tail) {
|
||||
XrSubPathClose(path->tail);
|
||||
XrPathNewSubPath(path);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue