aboutsummaryrefslogtreecommitdiff
path: root/src/share/native/sun/font/layout/LigatureSubstSubtables.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/share/native/sun/font/layout/LigatureSubstSubtables.cpp')
-rw-r--r--src/share/native/sun/font/layout/LigatureSubstSubtables.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/share/native/sun/font/layout/LigatureSubstSubtables.cpp b/src/share/native/sun/font/layout/LigatureSubstSubtables.cpp
index 5520940957..48cdbf49f6 100644
--- a/src/share/native/sun/font/layout/LigatureSubstSubtables.cpp
+++ b/src/share/native/sun/font/layout/LigatureSubstSubtables.cpp
@@ -42,6 +42,10 @@ U_NAMESPACE_BEGIN
le_uint32 LigatureSubstitutionSubtable::process(const LETableReference &base, GlyphIterator *glyphIterator, LEErrorCode &success, const LEGlyphFilter *filter) const
{
+ if (LE_FAILURE(success)) {
+ return 0;
+ }
+
LEGlyphID glyph = glyphIterator->getCurrGlyphID();
le_int32 coverageIndex = getGlyphCoverage(base, glyph, success);