diff options
author | Gevel Tekens <geveltekens@gmail.com> | 2025-02-04 23:13:27 +0100 |
---|---|---|
committer | Rodrigo Arias Mallo <rodarima@gmail.com> | 2025-02-05 21:50:39 +0100 |
commit | 6cd133d2f242d36bd48ddea44acd868f70782d0b (patch) | |
tree | d6846c0e13706fb1dbb94885cb2980a639d22735 /dw/textblock_linebreaking.cc | |
parent | 0c7e087fbd0278da9a39bd16ab9385073f1f495c (diff) |
Fix several typos
See: https://lists.mailman3.com/hyperkitty/list/dillo-dev@mailman3.com/thread/L3FFAINJJMIOZQNID5HC2DHKJIIIHEYH/
Diffstat (limited to 'dw/textblock_linebreaking.cc')
-rw-r--r-- | dw/textblock_linebreaking.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/dw/textblock_linebreaking.cc b/dw/textblock_linebreaking.cc index 713ad530..1a95cb70 100644 --- a/dw/textblock_linebreaking.cc +++ b/dw/textblock_linebreaking.cc @@ -513,7 +513,7 @@ void Textblock::processWord (int wordIndex) // // (Note: the hyphenated word is often *before* wordIndex, and // it may be even more than one word, which makes it nearly - // impossible to reconstruct what has happend. Therefore, there + // impossible to reconstruct what has happened. Therefore, there // is no simpler approach to handle this.) DBG_OBJ_MSGF ("construct.paragraph", 1, @@ -1492,7 +1492,7 @@ int Textblock::hyphenateWord (int wordIndex, int *addIndex1) // AccumulateWordData() will calculate the width, which depends // on the borders (possibly limited by floats), which depends on - // the widgeds so far. For this reason, it is important to first + // the widgets so far. For this reason, it is important to first // make all words consistent before calling // accumulateWordData(); therefore the second loop. @@ -1553,7 +1553,7 @@ void Textblock::moveWordIndices (int wordIndex, int num, int *addIndex1) par->firstWord += num; } - // Addiditional indices. When needed, the number can be extended. + // Additional indices. When needed, the number can be extended. if (addIndex1 && *addIndex1 >= wordIndex) *addIndex1 += num; @@ -1653,7 +1653,7 @@ void Textblock::accumulateWordData (int wordIndex) lineIndex, firstWordOfLine, lineBreakWidth); if (wordIndex == firstWordOfLine) { - // first word of the (not neccessarily yet existing) line + // first word of the (not necessarily yet existing) line word->totalWidth = word->size.width + word->hyphenWidth; word->maxAscent = word->size.ascent; word->maxDescent = word->size.descent; |