summaryrefslogtreecommitdiff
path: root/src/cairo-misc.c
diff options
context:
space:
mode:
authorJeff Muizelaar <jmuizelaar@mozilla.com>2008-12-17 17:42:18 -0500
committerJeff Muizelaar <jmuizelaar@mozilla.com>2008-12-17 17:42:18 -0500
commit1d72e53c3e99f93aa59967c76f1b1b4c035b9130 (patch)
treeca12bf08e605467344c333ba632005d9d835c9e7 /src/cairo-misc.c
parentaf3a892c3ef6a7c1d28d523944bbb67e59edc1de (diff)
downloadcairo-1d72e53c3e99f93aa59967c76f1b1b4c035b9130.tar.gz
Add a missing _cairo_error() to a bunch of status returns.
Diffstat (limited to 'src/cairo-misc.c')
-rw-r--r--src/cairo-misc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cairo-misc.c b/src/cairo-misc.c
index 6f707a664..708ba52c4 100644
--- a/src/cairo-misc.c
+++ b/src/cairo-misc.c
@@ -288,7 +288,7 @@ _cairo_validate_text_clusters (const char *utf8,
/* Make sure we've got valid UTF-8 for the cluster */
status = _cairo_utf8_to_ucs4 (utf8+n_bytes, cluster_bytes, NULL, NULL);
if (unlikely (status))
- return CAIRO_STATUS_INVALID_CLUSTERS;
+ return _cairo_error (CAIRO_STATUS_INVALID_CLUSTERS);
n_bytes += cluster_bytes ;
n_glyphs += cluster_glyphs;
@@ -296,7 +296,7 @@ _cairo_validate_text_clusters (const char *utf8,
if (n_bytes != (unsigned int) utf8_len || n_glyphs != (unsigned int) num_glyphs) {
BAD:
- return CAIRO_STATUS_INVALID_CLUSTERS;
+ return _cairo_error (CAIRO_STATUS_INVALID_CLUSTERS);
}
return CAIRO_STATUS_SUCCESS;