summaryrefslogtreecommitdiff
path: root/pango/pango-script.c
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@gnome.org>2007-06-02 18:54:24 +0000
committerBehdad Esfahbod <behdad@src.gnome.org>2007-06-02 18:54:24 +0000
commit99d528b55a30bb0b260afd572b6db599ef85b1aa (patch)
treef8644e12a4e5564c60d7d679eb74ebbd1ac8a30d /pango/pango-script.c
parent41b9a6435cbb1eadacd29701226700dc66eb2115 (diff)
downloadpango-99d528b55a30bb0b260afd572b6db599ef85b1aa.tar.gz
Bug 443206 – PANGO_SCRIPT_UNKNOWN should not cause a run break Patch
2007-06-02 Behdad Esfahbod <behdad@gnome.org> Bug 443206 – PANGO_SCRIPT_UNKNOWN should not cause a run break Patch from Martin Hosken * pango/pango-script.c: Treat Unknown script like Common and other non-"real" scripts. svn path=/trunk/; revision=2326
Diffstat (limited to 'pango/pango-script.c')
-rw-r--r--pango/pango-script.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pango/pango-script.c b/pango/pango-script.c
index d10b3a91..3f8dadb7 100644
--- a/pango/pango-script.c
+++ b/pango/pango-script.c
@@ -257,7 +257,7 @@ get_pair_index (gunichar ch)
}
#define REAL_SCRIPT(script) \
- ((script) > PANGO_SCRIPT_INHERITED)
+ ((script) > PANGO_SCRIPT_INHERITED && (script) != PANGO_SCRIPT_UNKNOWN)
#define SAME_SCRIPT(script1, script2) \
(!REAL_SCRIPT (script1) || !REAL_SCRIPT (script2) || (script1) == (script2))