diff options
Diffstat (limited to 'platform/java/mupdf_native.c')
-rw-r--r-- | platform/java/mupdf_native.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/platform/java/mupdf_native.c b/platform/java/mupdf_native.c index b4a09a0e..4dc75889 100644 --- a/platform/java/mupdf_native.c +++ b/platform/java/mupdf_native.c @@ -5897,7 +5897,7 @@ FUN(StructuredText_getBlocks)(JNIEnv *env, jobject self) for (b=0, block = page->first_block; block; ++b, block = block->next) { // only do text blocks - if (block->type == FZ_STEXT_BLOCK_TEXT) + if (block->type != FZ_STEXT_BLOCK_TEXT) continue; // make a block @@ -5964,6 +5964,9 @@ FUN(StructuredText_getBlocks)(JNIEnv *env, jobject self) (*env)->DeleteLocalRef(env, jchar); } + // set the line's char array + (*env)->SetObjectField(env, jline, fid_TextLine_chars, carr); + // add to the line array (*env)->SetObjectArrayElement(env, larr, l, jline); if ((*env)->ExceptionCheck(env)) return NULL; |