mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-21 22:57:31 +09:00
Issue #3039 - Add closure point to bounds calculation.
This addition of a closure point (explicitly completing the closed shape) isn't strictly needed in our current cairo version as it works perfectly fine without, but if our clipping extents code changes then this might cause problems if the extra point isn't added (in case of 0-length paths).
This commit is contained in:
parent
517a6b90a3
commit
42fc0af325
1 changed files with 10 additions and 0 deletions
|
|
@ -107,6 +107,16 @@ _cairo_path_bounder_curve_to (void *closure,
|
|||
static cairo_status_t
|
||||
_cairo_path_bounder_close_path (void *closure)
|
||||
{
|
||||
// XXXMC: This addition of a closure point isn't strictly needed but
|
||||
// if our clipping extents code changes then this might cause problems
|
||||
// if the extra point isn't added (in case of 0-length paths).
|
||||
cairo_path_bounder_t *bounder = closure;
|
||||
|
||||
if (bounder->has_initial_point) {
|
||||
_cairo_path_bounder_add_point (bounder, &bounder->current_point);
|
||||
bounder->has_initial_point = FALSE;
|
||||
}
|
||||
|
||||
return CAIRO_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue