]> git.saurik.com Git - apple/icu.git/blobdiff - icuSources/layout/MarkToMarkPosnSubtables.cpp
ICU-511.31.tar.gz
[apple/icu.git] / icuSources / layout / MarkToMarkPosnSubtables.cpp
index 66d1b9dd1c21a1e3088314a7833f45fc23f10bd8..3f571f5e39cbc7a37f9133c7a9e7e3bb7915b94d 100644 (file)
@@ -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);