mirror of
https://github.com/geometer/FBReaderJ.git
synced 2025-10-04 18:29:23 +02:00
fixed possible IOOBE
This commit is contained in:
parent
17dbf622f4
commit
3d7577f889
1 changed files with 1 additions and 1 deletions
|
@ -122,7 +122,7 @@ public class JellyBeanSpanFixTextView extends TextView {
|
||||||
|
|
||||||
for (Object span : spans) {
|
for (Object span : spans) {
|
||||||
int spanStart = builder.getSpanStart(span);
|
int spanStart = builder.getSpanStart(span);
|
||||||
if (isNotSpace(builder, spanStart - 1)) {
|
if (spanStart > 0 && isNotSpace(builder, spanStart - 1)) {
|
||||||
builder.insert(spanStart, " ");
|
builder.insert(spanStart, " ");
|
||||||
spansWithSpacesBefore.add(span);
|
spansWithSpacesBefore.add(span);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue