mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-02 23:38:13 +02:00
Merge branch 'wip-fix-352' into 'master'
Avoid assert when drawing arcs with NaN angles Closes #352 See merge request cairo/cairo!515
This commit is contained in:
commit
86d7025af5
1 changed files with 3 additions and 0 deletions
|
|
@ -188,6 +188,9 @@ _cairo_arc_in_direction (cairo_t *cr,
|
|||
if (cairo_status (cr))
|
||||
return;
|
||||
|
||||
if (! ISFINITE (angle_max) || ! ISFINITE (angle_min))
|
||||
return;
|
||||
|
||||
assert (angle_max >= angle_min);
|
||||
|
||||
if (angle_max - angle_min > 2 * M_PI * MAX_FULL_CIRCLES) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue