mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-05 08:48:00 +02:00
region: Don't be nice to people setting internal error code
Just DIE DIE DIE in the _cairo_status_set_status() assertion.
This commit is contained in:
parent
3823c486f7
commit
4a3ab4b60a
1 changed files with 3 additions and 3 deletions
|
|
@ -133,10 +133,10 @@ _cairo_region_create_in_error (cairo_status_t status)
|
|||
**/
|
||||
static cairo_status_t
|
||||
_cairo_region_set_error (cairo_region_t *region,
|
||||
cairo_status_t status)
|
||||
cairo_status_t status)
|
||||
{
|
||||
if (! _cairo_status_is_error (status))
|
||||
return status;
|
||||
if (status == CAIRO_STATUS_SUCCESS)
|
||||
return CAIRO_STATUS_SUCCESS;
|
||||
|
||||
/* Don't overwrite an existing error. This preserves the first
|
||||
* error, which is the most significant. */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue