Skip to content

Commit

Permalink
Fix nbgl_getTextMaxLenInNbLines() computing wrong len for non wrappab…
Browse files Browse the repository at this point in the history
…le text
  • Loading branch information
nroggeman-ledger committed Dec 1, 2023
1 parent dec1c4d commit 2c99347
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib_nbgl/src/nbgl_fonts.c
Original file line number Diff line number Diff line change
Expand Up @@ -585,6 +585,7 @@ bool nbgl_getTextMaxLenInNbLines(nbgl_font_id_e fontId,
textLen = lenAtLastDelimiter;
}
else {
textLen += text - previousText;
text = previousText;
}
width = 0;
Expand Down

0 comments on commit 2c99347

Please sign in to comment.