diff options
author | aavit <qt-info@nokia.com> | 2011-03-23 15:02:32 (GMT) |
---|---|---|
committer | aavit <qt-info@nokia.com> | 2011-03-23 15:02:32 (GMT) |
commit | 7659d865ebb1e52f452ed041270e09e5024825a1 (patch) | |
tree | acfadef7ab228ada7fefe296aa14d73accf89798 /src/3rdparty | |
parent | 254e14a81708213312d8b64d73fbc1dfc362b0d0 (diff) | |
parent | 1e6e5fdd02757b9f8b5abf23973cbdc76ae67333 (diff) | |
download | Qt-7659d865ebb1e52f452ed041270e09e5024825a1.zip Qt-7659d865ebb1e52f452ed041270e09e5024825a1.tar.gz Qt-7659d865ebb1e52f452ed041270e09e5024825a1.tar.bz2 |
Merge branch 'master' of scm.dev.nokia.troll.no:qt/qt-fire-team
Diffstat (limited to 'src/3rdparty')
-rw-r--r-- | src/3rdparty/harfbuzz/src/harfbuzz-shaper.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/3rdparty/harfbuzz/src/harfbuzz-shaper.cpp b/src/3rdparty/harfbuzz/src/harfbuzz-shaper.cpp index 6c4d9f1..c202e1f 100644 --- a/src/3rdparty/harfbuzz/src/harfbuzz-shaper.cpp +++ b/src/3rdparty/harfbuzz/src/harfbuzz-shaper.cpp @@ -1052,16 +1052,16 @@ HB_Bool HB_SelectScript(HB_ShaperItem *shaper_item, const HB_OpenTypeFeature *fe { HB_Script script = shaper_item->item.script; - if (!shaper_item->face->supported_scripts[script]) - return false; - HB_Face face = shaper_item->face; if (face->current_script == script && face->current_flags == shaper_item->shaperFlags) - return true; + return shaper_item->face->supported_scripts[script] ? true : false; face->current_script = script; face->current_flags = shaper_item->shaperFlags; + if (!shaper_item->face->supported_scripts[script]) + return false; + assert(script < HB_ScriptCount); // find script in our list of supported scripts. unsigned int tag = ot_scripts[script].tag; |