mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-07 14:31:31 +00:00
ICU-5116 computeGlyphs() should return if characterProcessing() or glyphProcessing() fail.
X-SVN-Rev: 19576
This commit is contained in:
parent
c2bc815333
commit
19230a3f00
1 changed files with 8 additions and 0 deletions
|
@ -235,6 +235,10 @@ le_int32 OpenTypeLayoutEngine::computeGlyphs(const LEUnicode chars[], le_int32 o
|
|||
|
||||
outCharCount = characterProcessing(chars, offset, count, max, rightToLeft, outChars, fakeGlyphStorage, success);
|
||||
|
||||
if (LE_FAILURE(success)) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (outChars != NULL) {
|
||||
fakeGlyphCount = glyphProcessing(outChars, 0, outCharCount, outCharCount, rightToLeft, fakeGlyphStorage, success);
|
||||
LE_DELETE_ARRAY(outChars); // FIXME: a subclass may have allocated this, in which case this delete might not work...
|
||||
|
@ -244,6 +248,10 @@ le_int32 OpenTypeLayoutEngine::computeGlyphs(const LEUnicode chars[], le_int32 o
|
|||
//adjustGlyphs(chars, offset, count, rightToLeft, fakeGlyphs, fakeGlyphCount);
|
||||
}
|
||||
|
||||
if (LE_FAILURE(success)) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
outGlyphCount = glyphPostProcessing(fakeGlyphStorage, glyphStorage, success);
|
||||
|
||||
return outGlyphCount;
|
||||
|
|
Loading…
Add table
Reference in a new issue