summaryrefslogtreecommitdiff
path: root/src/cairo-pdf-operators.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2010-05-04 18:50:27 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2010-05-04 18:53:50 +0100
commit5155ebeaa25815124124db2599336ab2ddbe7413 (patch)
treef3882734a4f6ec5f248c896fc48fb5c59cd81f1b /src/cairo-pdf-operators.c
parentd9259bd06822c871a4c653f395cfc1f933caaeb7 (diff)
downloadcairo-5155ebeaa25815124124db2599336ab2ddbe7413.tar.gz
pdf: Assert that no other error can occur for an invertible matrix.
Diffstat (limited to 'src/cairo-pdf-operators.c')
-rw-r--r--src/cairo-pdf-operators.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/cairo-pdf-operators.c b/src/cairo-pdf-operators.c
index 11911dc36..601011a3f 100644
--- a/src/cairo-pdf-operators.c
+++ b/src/cairo-pdf-operators.c
@@ -1381,8 +1381,7 @@ _cairo_pdf_operators_show_text_glyphs (cairo_pdf_operators_t *pdf_operators,
status = cairo_matrix_invert (&pdf_operators->font_matrix_inverse);
if (status == CAIRO_STATUS_INVALID_MATRIX)
return CAIRO_STATUS_SUCCESS;
- if (unlikely (status))
- return status;
+ assert (status == CAIRO_STATUS_SUCCESS);
pdf_operators->is_new_text_object = FALSE;
if (pdf_operators->in_text_object == FALSE) {