diff options
author | Carl Worth <cworth@cworth.org> | 2006-07-26 13:04:25 -0700 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2006-07-26 13:04:25 -0700 |
commit | 71e9372bbdc5c85e14dfc1156269ae6f74802f4d (patch) | |
tree | 0fc279da4255253ab6b6061e7fb1e5d927f545be /src | |
parent | e94251861565ed154e15ca3a7198ffe3828536fe (diff) |
Fix text disappearing after space (bug #6617)1.0
What happened here is that when fixing bug #5734 we cahnged the
glyph image cache lookup to never return a NULL pointer, but to
instead return a 0x0 image surface. We didn't also update code
that was looking for a NULL pointer here, and as such we were
calling XRenderAddGlyphs with a 0x0 image which apparently
tickles a bug in some X servers.
Diffstat (limited to 'src')
-rw-r--r-- | src/cairo-xlib-surface.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cairo-xlib-surface.c b/src/cairo-xlib-surface.c index 0efabf497..10ecbe555 100644 --- a/src/cairo-xlib-surface.c +++ b/src/cairo-xlib-surface.c @@ -2063,7 +2063,7 @@ _xlib_glyphset_cache_create_entry (void *abstract_cache, entry->key = *key; _cairo_unscaled_font_reference (entry->key.unscaled); - if (!im->image) { + if (im->image->width == 0 || im->image->height == 0) { entry->glyph = None; entry->glyphset = None; entry->key.base.memory = 0; |