mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-20 20:19:32 +00:00
ICU-4970 Check LayoutEngine function call status returns
X-SVN-Rev: 25355
This commit is contained in:
parent
04fe5b993d
commit
b5286a73b8
1 changed files with 14 additions and 0 deletions
|
@ -440,8 +440,22 @@ ParagraphLayout::ParagraphLayout(const LEUnicode chars[], le_int32 count,
|
|||
}
|
||||
|
||||
engine->getGlyphs(fStyleRunInfo[run].glyphs, layoutStatus);
|
||||
if (LE_FAILURE(layoutStatus)) {
|
||||
status = layoutStatus;
|
||||
return;
|
||||
}
|
||||
|
||||
engine->getGlyphPositions(fStyleRunInfo[run].positions, layoutStatus);
|
||||
if (LE_FAILURE(layoutStatus)) {
|
||||
status = layoutStatus;
|
||||
return;
|
||||
}
|
||||
|
||||
engine->getCharIndices(&fGlyphToCharMap[glyphBase], runStart, layoutStatus);
|
||||
if (LE_FAILURE(layoutStatus)) {
|
||||
status = layoutStatus;
|
||||
return;
|
||||
}
|
||||
|
||||
for (glyph = 0; glyph < glyphCount; glyph += 1) {
|
||||
fGlyphWidths[glyphBase + glyph] = fStyleRunInfo[run].positions[glyph * 2 + 2] - fStyleRunInfo[run].positions[glyph * 2];
|
||||
|
|
Loading…
Add table
Reference in a new issue