Comment typo fix
This commit is contained in:
parent
91674d5a49
commit
13664ef86e
1 changed files with 4 additions and 4 deletions
|
|
@ -966,8 +966,8 @@ impl ShapeLine {
|
||||||
// wrapping results.
|
// wrapping results.
|
||||||
if current_visual_line.w + (word_range_width + word_width)
|
if current_visual_line.w + (word_range_width + word_width)
|
||||||
<= line_width
|
<= line_width
|
||||||
// Include on blank word over the width limit since it won't be counted
|
// Include one blank word over the width limit since it won't be
|
||||||
// in the final width
|
// counted in the final width
|
||||||
|| (word.blank
|
|| (word.blank
|
||||||
&& (current_visual_line.w + word_range_width) <= line_width)
|
&& (current_visual_line.w + word_range_width) <= line_width)
|
||||||
{
|
{
|
||||||
|
|
@ -1066,8 +1066,8 @@ impl ShapeLine {
|
||||||
let word_width = font_size * word.x_advance;
|
let word_width = font_size * word.x_advance;
|
||||||
if current_visual_line.w + (word_range_width + word_width)
|
if current_visual_line.w + (word_range_width + word_width)
|
||||||
<= line_width
|
<= line_width
|
||||||
// Include on blank word over the width limit since it won't be counted
|
// Include one blank word over the width limit since it won't be
|
||||||
// in the final width.
|
// counted in the final width.
|
||||||
|| (word.blank
|
|| (word.blank
|
||||||
&& (current_visual_line.w + word_range_width) <= line_width)
|
&& (current_visual_line.w + word_range_width) <= line_width)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue