changeset 10910:fe774848cbf9

8073334: Improved font substitutions Reviewed-by: bae, srl, mschoene
author prr
date Tue, 07 Apr 2015 16:46:22 -0700
parents db834667e996
children 96d1615ba9e7
files src/share/native/sun/font/layout/AlternateSubstSubtables.cpp
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/native/sun/font/layout/AlternateSubstSubtables.cpp	Tue Apr 07 14:33:57 2015 +0300
+++ b/src/share/native/sun/font/layout/AlternateSubstSubtables.cpp	Tue Apr 07 16:46:22 2015 -0700
@@ -53,6 +53,7 @@
             Offset alternateSetTableOffset = SWAPW(alternateSetTableOffsetArray[coverageIndex]);
             const LEReferenceTo<AlternateSetTable> alternateSetTable(base, success,
                                   (const AlternateSetTable *) ((char *) this + alternateSetTableOffset));
+            if (!LE_SUCCESS(success)) return 0;
             TTGlyphID alternate = SWAPW(alternateSetTable->alternateArray[0]);
 
             if (filter == NULL || filter->accept(LE_SET_GLYPH(glyph, alternate), success)) {