mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-09 04:58:04 +02:00
type3: Minor tweaks to remove a redundant check.
This commit is contained in:
parent
11531b90a2
commit
4a46c71556
1 changed files with 2 additions and 6 deletions
|
|
@ -430,7 +430,6 @@ _cairo_type3_glyph_surface_analyze_glyph (void *abstract_surface,
|
|||
_cairo_scaled_font_freeze_cache (surface->scaled_font);
|
||||
status = _cairo_scaled_glyph_lookup (surface->scaled_font,
|
||||
glyph_index,
|
||||
CAIRO_SCALED_GLYPH_INFO_METRICS |
|
||||
CAIRO_SCALED_GLYPH_INFO_RECORDING_SURFACE,
|
||||
&scaled_glyph);
|
||||
|
||||
|
|
@ -447,10 +446,7 @@ _cairo_type3_glyph_surface_analyze_glyph (void *abstract_surface,
|
|||
if (unlikely (status))
|
||||
goto cleanup;
|
||||
|
||||
status2 = _cairo_pdf_operators_flush (&surface->pdf_operators);
|
||||
if (status == CAIRO_STATUS_SUCCESS)
|
||||
status = status2;
|
||||
|
||||
status = _cairo_pdf_operators_flush (&surface->pdf_operators);
|
||||
if (status == CAIRO_INT_STATUS_IMAGE_FALLBACK)
|
||||
status = CAIRO_STATUS_SUCCESS;
|
||||
|
||||
|
|
@ -507,7 +503,7 @@ _cairo_type3_glyph_surface_emit_glyph (void *abstract_surface,
|
|||
status2 = cairo_matrix_invert (&font_matrix_inverse);
|
||||
|
||||
/* The invertability of font_matrix is tested in
|
||||
* pdf_operators_show_glyphs before any glyphs are mappped to the
|
||||
* pdf_operators_show_glyphs before any glyphs are mapped to the
|
||||
* subset. */
|
||||
assert (status2 == CAIRO_STATUS_SUCCESS);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue