mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-12-26 10:35:50 +01:00
Fix endless loop and resulting OOM when RTL support is enabled and a word is exactly the configured max line length
This should be reviewed by the original author And could be connected to #1311
This commit is contained in:
parent
c1fde5611c
commit
2facd9df6c
@ -527,7 +527,7 @@ public class RtlUtils {
|
|||||||
|
|
||||||
do {
|
do {
|
||||||
if ((line.length() + phrase.length() + word.length() < line_max_size) ||
|
if ((line.length() + phrase.length() + word.length() < line_max_size) ||
|
||||||
(line.length() == 0 && word.length() > line_max_size)) {
|
(line.length() == 0 && word.length() >= line_max_size)) {
|
||||||
if (isSpaceSign(c)) {
|
if (isSpaceSign(c)) {
|
||||||
word.append(c);
|
word.append(c);
|
||||||
addCharToWord = true;
|
addCharToWord = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user