mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-01 12:44:42 +00:00
Added fail-safe
This commit is contained in:
parent
b1825316c3
commit
94ce9eabd4
1 changed files with 6 additions and 5 deletions
|
@ -2246,11 +2246,12 @@ public class HtmlHelper {
|
|||
if (dashed) {
|
||||
LineSpan[] lines = ssb.getSpans(0, ssb.length(), LineSpan.class);
|
||||
int last = -1;
|
||||
for (LineSpan line : lines) {
|
||||
int e = ssb.getSpanEnd(line);
|
||||
if (e > last)
|
||||
last = e;
|
||||
}
|
||||
if (lines != null)
|
||||
for (LineSpan line : lines) {
|
||||
int e = ssb.getSpanEnd(line);
|
||||
if (e > last)
|
||||
last = e;
|
||||
}
|
||||
if (last >= 0) {
|
||||
boolean blank = true;
|
||||
for (int i = last; i < ssb.length(); i++) {
|
||||
|
|
Loading…
Reference in a new issue