Fixed empty span orphans

pull/198/head
M66B 4 years ago
parent 63a70f5d27
commit a81f3080e0

@ -692,7 +692,7 @@ public class FragmentCompose extends FragmentBase {
for (ParagraphStyle p : ps) {
int start = text.getSpanStart(p);
int end = text.getSpanEnd(p);
if (start == removed && end == removed + 1)
if (start >= removed && end <= removed + 1)
text.removeSpan(p);
}

Loading…
Cancel
Save