File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
layout/src/main/java/com/itextpdf/layout/renderer Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -210,9 +210,10 @@ public LineLayoutResult layout(LayoutContext layoutContext) {
210
210
children .add (new TextRenderer ((TextRenderer ) renderer ));
211
211
((TextRenderer ) children .get (children .size () - 1 )).line = new GlyphLine (((TextRenderer ) children .get (children .size () - 1 )).line );
212
212
GlyphLine gl = ((TextRenderer ) children .get (children .size () - 1 )).line ;
213
- gl .end = gl .start ;
213
+ gl .glyphs = new ArrayList <>();
214
+ gl .end = gl .start = 0 ;
214
215
while (pos < reorderedLine .size () && reorderedLine .get (pos ).renderer == renderer ) {
215
- gl .set ( gl . end , reorderedLine .get (pos ).glyph );
216
+ gl .add ( reorderedLine .get (pos ).glyph );
216
217
gl .end ++;
217
218
pos ++;
218
219
}
You can’t perform that action at this time.
0 commit comments