diff options
Diffstat (limited to 'Build/source/libs/icu-xetex/layout/MarkToMarkPosnSubtables.cpp')
-rw-r--r-- | Build/source/libs/icu-xetex/layout/MarkToMarkPosnSubtables.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Build/source/libs/icu-xetex/layout/MarkToMarkPosnSubtables.cpp b/Build/source/libs/icu-xetex/layout/MarkToMarkPosnSubtables.cpp index 66d1b9dd1c2..3f571f5e39c 100644 --- a/Build/source/libs/icu-xetex/layout/MarkToMarkPosnSubtables.cpp +++ b/Build/source/libs/icu-xetex/layout/MarkToMarkPosnSubtables.cpp @@ -1,6 +1,6 @@ /* * - * (C) Copyright IBM Corp. 1998-2004 - All Rights Reserved + * (C) Copyright IBM Corp. 1998-2005 - All Rights Reserved * */ @@ -65,6 +65,11 @@ le_int32 MarkToMarkPositioningSubtable::process(GlyphIterator *glyphIterator, co const AnchorTable *anchorTable = (const AnchorTable *) ((char *) mark2Array + anchorTableOffset); LEPoint mark2Anchor, markAdvance, pixels; + if (anchorTableOffset == 0) { + // this seems to mean that the marks don't attach... + return 0; + } + anchorTable->getAnchor(mark2Glyph, fontInstance, mark2Anchor); fontInstance->getGlyphAdvance(markGlyph, pixels); |