cairo-util: Add missing HAVE_PANGO guard
For pango_cairo_font_map_set_default(). Fixes #720 Suggested-by: Pekka Paalanen <pekka.paalanen@collabora.com> Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
This commit is contained in:
parent
06365e602b
commit
7aac1acad8
|
@ -694,7 +694,9 @@ cleanup_after_cairo(void)
|
||||||
/* some clients, particular weston-editor, still creates indirectly a
|
/* some clients, particular weston-editor, still creates indirectly a
|
||||||
* new font map; this makes sure we untie that up and avoid an assert
|
* new font map; this makes sure we untie that up and avoid an assert
|
||||||
* from cairo */
|
* from cairo */
|
||||||
|
#ifdef HAVE_PANGO
|
||||||
pango_cairo_font_map_set_default(NULL);
|
pango_cairo_font_map_set_default(NULL);
|
||||||
|
#endif
|
||||||
cairo_debug_reset_static_data();
|
cairo_debug_reset_static_data();
|
||||||
#ifdef HAVE_PANGO
|
#ifdef HAVE_PANGO
|
||||||
FcFini();
|
FcFini();
|
||||||
|
|
Loading…
Reference in New Issue