summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChookij Vanatham <chookij@src.gnome.org>2001-04-20 15:58:12 +0000
committerChookij Vanatham <chookij@src.gnome.org>2001-04-20 15:58:12 +0000
commitae3c79f4dd45eb87764be5bf3e5ca2f6fa4b64fb (patch)
tree3be4bcf045a33693cad66f1d88abbe1e0ed501a4
parentd88a166cc609802c065495404f0a856125544af5 (diff)
downloadpango-ae3c79f4dd45eb87764be5bf3e5ca2f6fa4b64fb.tar.gz
Fixed crash when 2 chars in a cluster and 1st char isn't consonance.
-rw-r--r--modules/thai/thai-x.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/thai/thai-x.c b/modules/thai/thai-x.c
index f3299b69..1970fb36 100644
--- a/modules/thai/thai-x.c
+++ b/modules/thai/thai-x.c
@@ -555,9 +555,9 @@ get_adjusted_glyphs_list (ThaiFontInfo *font_info,
glyph_lists[0] =
PANGO_X_MAKE_GLYPH (font_info->subfont, 0x7F);
glyph_lists[1] =
- PANGO_X_MAKE_GLYPH (font_info->subfont, ucs2tis (cluster[1]));
+ PANGO_X_MAKE_GLYPH (font_info->subfont, ucs2tis (cluster[0]));
glyph_lists[2] =
- PANGO_X_MAKE_GLYPH (font_info->subfont, ucs2tis (cluster[2]));
+ PANGO_X_MAKE_GLYPH (font_info->subfont, ucs2tis (cluster[1]));
return 3;
}
break;