summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Canciani <ranma42@gmail.com>2011-07-30 23:46:30 +0200
committerAndrea Canciani <ranma42@gmail.com>2011-07-31 00:11:38 +0200
commit9c24ec515375a0f4d5fbcaded34356543310ab16 (patch)
tree2b8877a5e04f691b91a541dedc77e9bc83eb2f4b
parentb4fbdfea54a28cefc6c6480bb4cb13e1cb6d6835 (diff)
liberal as masterwip/cleanup-object
-rw-r--r--src/cairo-object.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/cairo-object.c b/src/cairo-object.c
index 5dbf05592..4b4c1f055 100644
--- a/src/cairo-object.c
+++ b/src/cairo-object.c
@@ -119,6 +119,12 @@ _cairo_object_create_in_error (cairo_status_t status)
cairo_status_t
_cairo_object_set_error (cairo_object_t *obj, cairo_status_t status)
{
+ if (status == CAIRO_STATUS_SUCCESS)
+ return CAIRO_STATUS_SUCCESS;
+
+ if (status == CAIRO_INT_STATUS_NOTHING_TO_DO)
+ return CAIRO_STATUS_SUCCESS;
+
/* Don't overwrite an existing error. This preserves the first
* error, which is the most significant. */
_cairo_status_set_error (&obj->mystatus, _cairo_error (status));