[cairo] glitz crash fix patch for show_glyphs
vladimirv at gmail.com
Wed Jul 13 22:42:58 PDT 2005
The attached patch fixes a crash when show_glyphs is called on a
surface with a glyph that has no area itself, e.g. ' ' (space).
cairo-glitz-surface.c was already using a static _empty_area for that,
but it would try to call move_out on the " " glyph and crash, because
_empty_area->root == NULL.
I'm not 100% positive this is the right fix -- it certainly fixes my
crashing and causes correct text rendering to happen, but perhaps the
bug is that move_in/move_out should not be called at all on glyphs
with empty area.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 657 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/cairo/attachments/20050713/ed8f964b/glitz-show-glyphs.bin
More information about the cairo