Fixed empty span orphans

This commit is contained in:
M66B 2021-05-08 15:54:16 +02:00
parent 63a70f5d27
commit a81f3080e0
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}