diff options
author | Benjamin Otte <otte@redhat.com> | 2011-02-18 18:52:11 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2011-02-18 18:52:11 +0100 |
commit | 056250775f15ea8fd337e3f37d6906f01b8c09a6 (patch) | |
tree | de7772fba9e77059ec9c910af2f394aa1330d1df | |
parent | 4a3ab4b60a80b01c17ce1789019d57d5d7430fdc (diff) |
surface: Allow NOTHING_TO_DO as a valid error for now
Lots of code relies on it, so we'd better not break that immediately. ;)
-rw-r--r-- | src/cairo-surface.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cairo-surface.c b/src/cairo-surface.c index 4c6dc767..3ba36f64 100644 --- a/src/cairo-surface.c +++ b/src/cairo-surface.c @@ -169,6 +169,10 @@ cairo_status_t _cairo_surface_set_error (cairo_surface_t *surface, cairo_status_t status) { + if (status == CAIRO_STATUS_SUCCESS || + status == CAIRO_INT_STATUS_NOTHING_TO_DO) + return; + /* Don't overwrite an existing error. This preserves the first * error, which is the most significant. */ _cairo_status_set_error (&surface->status, status); |