@@ -1045,25 +1045,25 @@ void ParagraphTxt::Layout(double width) {
10451045 return a.code_units .start < b.code_units .start ;
10461046 });
10471047
1048- double blob_x_pos_start = glyph_positions.front ().x_pos .start ;
1049- double blob_x_pos_end = run.is_placeholder_run ()
1050- ? glyph_positions.back ().x_pos .start +
1051- run.placeholder_run ()->width
1052- : glyph_positions.back ().x_pos .end ;
10531048 line_code_unit_runs.emplace_back (
10541049 std::move (code_unit_positions),
10551050 Range<size_t >(run.start (), run.end ()),
1056- Range<double >(blob_x_pos_start, blob_x_pos_end), line_number,
1057- *metrics, run.style (), run.direction (), run.placeholder_run ());
1051+ Range<double >(glyph_positions.front ().x_pos .start ,
1052+ run.is_placeholder_run ()
1053+ ? glyph_positions.back ().x_pos .start +
1054+ run.placeholder_run ()->width
1055+ : glyph_positions.back ().x_pos .end ),
1056+ line_number, *metrics, run.style (), run.direction (),
1057+ run.placeholder_run ());
10581058
10591059 if (run.is_placeholder_run ()) {
10601060 line_inline_placeholder_code_unit_runs.push_back (
10611061 line_code_unit_runs.back ());
10621062 }
10631063
10641064 if (!run.is_ghost ()) {
1065- min_left_ = std::min (min_left_, blob_x_pos_start );
1066- max_right_ = std::max (max_right_, blob_x_pos_end );
1065+ min_left_ = std::min (min_left_, glyph_positions. front (). x_pos . start );
1066+ max_right_ = std::max (max_right_, glyph_positions. back (). x_pos . end );
10671067 }
10681068 } // for each in glyph_blobs
10691069
0 commit comments