All pastes #167179 Raw Edit

Anonymous

public text v1 · immutable
·published 2006-09-11 19:16 UTC
rendered paste body
--- a/src/cairo.c
+++ b/src/cairo.c
@@ -2923,7 +2923,8 @@ cairo_append_path (cairo_t        *cr,
     }
 
     if (path->status) {
-       if (path->status <= CAIRO_STATUS_LAST_STATUS)
+       if (path->status > CAIRO_STATUS_SUCCESS &&
+           path->status <= CAIRO_STATUS_LAST_STATUS)
            _cairo_set_error (cr, path->status);
        else
            _cairo_set_error (cr, CAIRO_STATUS_INVALID_STATUS);