]> git.saurik.com Git - apple/icu.git/blobdiff - icuSources/layout/SegmentArrayProcessor.cpp
ICU-57132.0.1.tar.gz
[apple/icu.git] / icuSources / layout / SegmentArrayProcessor.cpp
index e43270a958bc9a89fe01e2268bc73e7ab5e51d9f..a87a5ebdb914c897215074ff427cc8e98dabbc7e 100644 (file)
@@ -1,6 +1,6 @@
 /*
  *
- * (C) Copyright IBM Corp. 1998-2013 - All Rights Reserved
+ * (C) Copyright IBM Corp. 1998-2015 - All Rights Reserved
  *
  */
 
@@ -38,6 +38,8 @@ void SegmentArrayProcessor::process(LEGlyphStorage &glyphStorage, LEErrorCode &s
     le_int32 glyphCount = glyphStorage.getGlyphCount();
     le_int32 glyph;
 
+    if (LE_FAILURE(success)) return;
+
     for (glyph = 0; glyph < glyphCount; glyph += 1) {
         LEGlyphID thisGlyph = glyphStorage[glyph];
         const LookupSegment *lookupSegment = segmentArrayLookupTable->lookupSegment(segmentArrayLookupTable, segments, thisGlyph, success);