mirror of https://github.com/M66B/FairEmail.git
Added fail-safe
This commit is contained in:
parent
1163c68e24
commit
50ddc885d3
|
@ -643,11 +643,11 @@ public class StyleHelper {
|
|||
for (BulletSpan span : spans)
|
||||
if (span instanceof BulletSpanEx) {
|
||||
BulletSpanEx bs = (BulletSpanEx) span;
|
||||
bs.setLevel(bs.getLevel() + add);
|
||||
bs.setLevel(Math.max(0, bs.getLevel() + add));
|
||||
} else if (span instanceof NumberSpan) {
|
||||
renum = true;
|
||||
NumberSpan ns = (NumberSpan) span;
|
||||
ns.setLevel(ns.getLevel() + add);
|
||||
ns.setLevel(Math.max(0, ns.getLevel() + add));
|
||||
}
|
||||
|
||||
if (renum)
|
||||
|
|
Loading…
Reference in New Issue