ICU-6997 Fix for layout of vertical text
X-SVN-Rev: 26108
This commit is contained in:
parent
d2f72ce37e
commit
ad548250eb
@ -1069,13 +1069,13 @@ void ParagraphLayout::appendRun(ParagraphLayout::Line *line, le_int32 run, le_in
|
||||
|
||||
for (outGlyph = 0, inGlyph = leftGlyph * 2; inGlyph <= rightGlyph * 2; inGlyph += 2, outGlyph += 2) {
|
||||
positions[outGlyph] = fStyleRunInfo[run].positions[inGlyph] + fVisualRunLastX;
|
||||
positions[outGlyph + 1] = fStyleRunInfo[run].positions[inGlyph + 1] /* + fVisualRunLastY */;
|
||||
positions[outGlyph + 1] = fStyleRunInfo[run].positions[inGlyph + 1] + fVisualRunLastY;
|
||||
}
|
||||
|
||||
// Save the ending position of this run
|
||||
// to use for the start of the next run
|
||||
fVisualRunLastX = positions[outGlyph - 2];
|
||||
// fVisualRunLastY = positions[rightGlyph * 2 + 2];
|
||||
fVisualRunLastY = positions[outGlyph - 1];
|
||||
|
||||
if ((fStyleRunInfo[run].level & 1) == 0) {
|
||||
for (outGlyph = 0, inGlyph = leftGlyph; inGlyph < rightGlyph; inGlyph += 1, outGlyph += 1) {
|
||||
@ -1240,4 +1240,3 @@ U_NAMESPACE_END
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user