From 99d528b55a30bb0b260afd572b6db599ef85b1aa Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Sat, 2 Jun 2007 18:54:24 +0000 Subject: =?UTF-8?q?Bug=20443206=20=E2=80=93=20PANGO=5FSCRIPT=5FUNKNOWN=20s?= =?UTF-8?q?hould=20not=20cause=20a=20run=20break=20Patch?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 2007-06-02 Behdad Esfahbod 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 --- ChangeLog | 8 ++++++++ pango/pango-script.c | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index a7dd1677..4050dbc1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2007-06-02 Behdad Esfahbod + + 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. + 2007-05-31 Behdad Esfahbod * pango/pango-layout.c: Improve docs. 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)) -- cgit v1.2.1