[cairo-commit] src/cairo-surface.c

Benjamin Otte company at kemper.freedesktop.org
Fri Feb 18 10:06:59 PST 2011


 src/cairo-surface.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit ea0595c5ec125d201b159fd7128c1a86c857a0a6
Author: Benjamin Otte <otte at redhat.com>
Date:   Fri Feb 18 19:06:16 2011 +0100

    surface: Actually return a value from _cairo_surface_set_error()
    
    This is what happens when there's too many warnings on the screen: I
    don't see the important ones. Oops.

diff --git a/src/cairo-surface.c b/src/cairo-surface.c
index 3ba36f6..b4c9eb6 100644
--- a/src/cairo-surface.c
+++ b/src/cairo-surface.c
@@ -171,7 +171,7 @@ _cairo_surface_set_error (cairo_surface_t *surface,
 {
     if (status == CAIRO_STATUS_SUCCESS ||
         status == CAIRO_INT_STATUS_NOTHING_TO_DO)
-        return;
+        return CAIRO_STATUS_SUCCESS;
 
     /* Don't overwrite an existing error. This preserves the first
      * error, which is the most significant. */


More information about the cairo-commit mailing list