diff src/share/native/sun/font/layout/SegmentArrayProcessor2.cpp @ 13703:64b55ae060e8

8227129: Better ligature for subtables Reviewed-by: bae
author mbalao
date Tue, 24 Sep 2019 19:07:02 -0300
parents dbb4e2bdfa9e
children
line wrap: on
line diff
--- a/src/share/native/sun/font/layout/SegmentArrayProcessor2.cpp	Wed Jun 19 15:23:53 2019 -0700
+++ b/src/share/native/sun/font/layout/SegmentArrayProcessor2.cpp	Tue Sep 24 19:07:02 2019 -0300
@@ -59,6 +59,8 @@
 
 void SegmentArrayProcessor2::process(LEGlyphStorage &glyphStorage, LEErrorCode &success)
 {
+    if (LE_FAILURE(success)) return;
+
     const LookupSegment *segments = segmentArrayLookupTable->segments;
     le_int32 glyphCount = glyphStorage.getGlyphCount();
     le_int32 glyph;