summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2005-08-21 08:06:06 +0000
committerOwen Taylor <otaylor@redhat.com>2005-08-21 08:06:06 +0000
commitaf614d2de601c997f3a2cbae535fb0e96110a386 (patch)
treef353e768cda215c1a21df9c01396c30023ea567f /src
parentf823dfd9328f1aab0155257fcf9bb3aa45455867 (diff)
Don't try to transform val->image when it is NULL. (#4163, Mathias Hasselmann)
Diffstat (limited to 'src')
-rw-r--r--src/cairo-ft-font.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cairo-ft-font.c b/src/cairo-ft-font.c
index 5605f8a0..8715603f 100644
--- a/src/cairo-ft-font.c
+++ b/src/cairo-ft-font.c
@@ -1258,7 +1258,8 @@ _cairo_ft_unscaled_font_create_glyph (void *abstract_
else
status = _render_glyph_bitmap (face, val);
- if (unscaled->have_shape &&
+ if (val->image &&
+ unscaled->have_shape &&
(unscaled->face->face_flags & FT_FACE_FLAG_SCALABLE) == 0)
status = _transform_glyph_bitmap (val);