[pango] Bug 748768 - pango_fc_font_map_set_config() should clear caches
- From: Behdad Esfahbod <behdad src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango] Bug 748768 - pango_fc_font_map_set_config() should clear caches
- Date: Fri, 1 May 2015 19:08:49 +0000 (UTC)
commit d650fc32b145f55da37fe27edbda1624ab7ac437
Author: Behdad Esfahbod <behdad behdad org>
Date: Fri May 1 15:07:48 2015 -0400
Bug 748768 - pango_fc_font_map_set_config() should clear caches
pango/pangofc-fontmap.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/pango/pangofc-fontmap.c b/pango/pangofc-fontmap.c
index 85dd94c..6c12e2e 100644
--- a/pango/pangofc-fontmap.c
+++ b/pango/pangofc-fontmap.c
@@ -1832,7 +1832,7 @@ pango_fc_font_map_cache_clear (PangoFcFontMap *fcfontmap)
**/
void
pango_fc_font_map_set_config (PangoFcFontMap *fcfontmap,
- FcConfig *fcconfig)
+ FcConfig *fcconfig)
{
FcConfig *oldconfig;
@@ -1845,6 +1845,9 @@ pango_fc_font_map_set_config (PangoFcFontMap *fcfontmap,
fcfontmap->priv->config = fcconfig;
+ if (oldconfig != fcconfig)
+ pango_fc_font_map_cache_clear (fcfontmap);
+
if (oldconfig)
FcConfigDestroy (oldconfig);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]