]> git.saurik.com Git - apple/icu.git/blobdiff - icuSources/layout/SegmentSingleProcessor2.cpp
ICU-57131.0.1.tar.gz
[apple/icu.git] / icuSources / layout / SegmentSingleProcessor2.cpp
index c53153cca5245aa9ad8b857edd7f5a5f2f662d68..4247af973bb570d36a85e8f24930c458375a86e1 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
  *
  */
 
@@ -39,6 +39,8 @@ void SegmentSingleProcessor2::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 = segmentSingleLookupTable->lookupSegment(segmentSingleLookupTable, segments, thisGlyph, success);