]> git.saurik.com Git - apple/icu.git/blobdiff - icuSources/layout/SegmentArrayProcessor2.cpp
ICU-57132.0.1.tar.gz
[apple/icu.git] / icuSources / layout / SegmentArrayProcessor2.cpp
index 41ba34f163b370c68e14478e2ca0792da053ede4..80bb573a5d94dcdb67aab757d6f754e94373d788 100644 (file)
@@ -1,6 +1,6 @@
 /*
  *
- * (C) Copyright IBM Corp.  and others 1998-2013 - All Rights Reserved
+ * (C) Copyright IBM Corp.  and others 1998-2015 - All Rights Reserved
  *
  */
 
@@ -38,6 +38,8 @@ void SegmentArrayProcessor2::process(LEGlyphStorage &glyphStorage, LEErrorCode &
     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);