aboutsummaryrefslogtreecommitdiff
path: root/src/share/native/sun/font/layout/MarkToBasePosnSubtables.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/share/native/sun/font/layout/MarkToBasePosnSubtables.cpp')
-rw-r--r--src/share/native/sun/font/layout/MarkToBasePosnSubtables.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/share/native/sun/font/layout/MarkToBasePosnSubtables.cpp b/src/share/native/sun/font/layout/MarkToBasePosnSubtables.cpp
index 2878981b6..50df2704a 100644
--- a/src/share/native/sun/font/layout/MarkToBasePosnSubtables.cpp
+++ b/src/share/native/sun/font/layout/MarkToBasePosnSubtables.cpp
@@ -56,6 +56,10 @@ le_int32 MarkToBasePositioningSubtable::process(const LETableReference &base, Gl
LEGlyphID markGlyph = glyphIterator->getCurrGlyphID();
le_int32 markCoverage = getGlyphCoverage(base, (LEGlyphID) markGlyph, success);
+ if (LE_FAILURE(success)) {
+ return 0;
+ }
+
if (markCoverage < 0) {
// markGlyph isn't a covered mark glyph
return 0;