summaryrefslogtreecommitdiff
path: root/src/cairo-font-face.c
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2008-06-24 15:07:07 -0400
committerBehdad Esfahbod <behdad@behdad.org>2008-06-24 15:07:07 -0400
commit74789a702bf5c62bc0d0361f139b2c94f67d5c6e (patch)
tree83bb0af67825ce8602652455f3a4e6020ccea744 /src/cairo-font-face.c
parentace3a98a53ab596c83df5a163e580770b9771bf2 (diff)
Cleanup _set_error functions a bit
Diffstat (limited to 'src/cairo-font-face.c')
-rw-r--r--src/cairo-font-face.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cairo-font-face.c b/src/cairo-font-face.c
index 97841b9a..1d673982 100644
--- a/src/cairo-font-face.c
+++ b/src/cairo-font-face.c
@@ -63,6 +63,8 @@ _cairo_font_face_set_error (cairo_font_face_t *font_face,
if (status == CAIRO_STATUS_SUCCESS)
return status;
+ /* Don't overwrite an existing error. This preserves the first
+ * error, which is the most significant. */
_cairo_status_set_error (&font_face->status, status);
return _cairo_error (status);