summaryrefslogtreecommitdiff
path: root/pango/pangowin32.c
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@gnome.org>2006-09-11 21:03:30 +0000
committerBehdad Esfahbod <behdad@src.gnome.org>2006-09-11 21:03:30 +0000
commitfca3a5693a7516bb4871576886609f9baf97ac74 (patch)
treed08ccd84df27b69378321fd241f4d3384e725f9d /pango/pangowin32.c
parentb8fac1bfdd04bd0daa078c15e24116efca14f616 (diff)
downloadpango-fca3a5693a7516bb4871576886609f9baf97ac74.tar.gz
Bug 355435 – Invalid calls to pango_map_get_engine() Patch from
2006-09-11 Behdad Esfahbod <behdad@gnome.org> Bug 355435 – Invalid calls to pango_map_get_engine() Patch from Theppitak Karoonboonyanan * pango/break.c (pango_get_log_attrs): * pango/pango-renderer.c (add_underline): * pango/pangofc-font.c (pango_fc_font_find_shaper): * pango/pangowin32.c (pango_win32_font_find_shaper): * pango/pangox.c (pango_x_font_find_shaper): Pass a PangoScript to pango_map_get_engine, not a gunichar!
Diffstat (limited to 'pango/pangowin32.c')
-rw-r--r--pango/pangowin32.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/pango/pangowin32.c b/pango/pangowin32.c
index b0ce7151..71f2ddeb 100644
--- a/pango/pangowin32.c
+++ b/pango/pangowin32.c
@@ -863,9 +863,11 @@ pango_win32_font_find_shaper (PangoFont *font,
guint32 ch)
{
PangoMap *shape_map = NULL;
+ PangoScript script;
shape_map = pango_win32_get_shaper_map (lang);
- return (PangoEngineShape *)pango_map_get_engine (shape_map, ch);
+ script = pango_script_for_unichar (ch);
+ return (PangoEngineShape *)pango_map_get_engine (shape_map, script);
}
/* Utility functions */