diff options
author | Robin Watts <robin.watts@artifex.com> | 2016-07-15 00:14:14 +0100 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2016-07-15 16:19:58 +0100 |
commit | 510110ebdfab78c9ff5043120d8d024f8262a525 (patch) | |
tree | 1ef504dbabddda799b49e5b903754ef53a6ab552 /platform/android/viewer | |
parent | 182c2b427c7396521cbf6d5a625f1c192c252008 (diff) | |
download | mupdf-510110ebdfab78c9ff5043120d8d024f8262a525.tar.xz |
Fix build breakage in Android viewer jni code.
Diffstat (limited to 'platform/android/viewer')
-rw-r--r-- | platform/android/viewer/jni/mupdf.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/platform/android/viewer/jni/mupdf.c b/platform/android/viewer/jni/mupdf.c index 626c950a..9af760b7 100644 --- a/platform/android/viewer/jni/mupdf.c +++ b/platform/android/viewer/jni/mupdf.c @@ -1265,7 +1265,7 @@ JNI_FN(MuPDFCore_searchPage)(JNIEnv * env, jobject thiz, jstring jtext) zoom = glo->resolution / 72; fz_scale(&ctm, zoom, zoom); sheet = fz_new_stext_sheet(ctx); - text = fz_new_stext_page(ctx, fz_bound_page(ctx, page, &mediabox)); + text = fz_new_stext_page(ctx, fz_bound_page(ctx, pc->page, &mediabox)); dev = fz_new_stext_device(ctx, sheet, text); fz_run_page(ctx, pc->page, dev, &ctm, NULL); fz_close_device(ctx, dev); @@ -1357,7 +1357,7 @@ JNI_FN(MuPDFCore_text)(JNIEnv * env, jobject thiz) zoom = glo->resolution / 72; fz_scale(&ctm, zoom, zoom); sheet = fz_new_stext_sheet(ctx); - text = fz_new_stext_page(ctx, fz_bound_page(ctx, page, &mediabox)); + text = fz_new_stext_page(ctx, fz_bound_page(ctx, pc->page, &mediabox)); dev = fz_new_stext_device(ctx, sheet, text); fz_run_page(ctx, pc->page, dev, &ctm, NULL); fz_close_device(ctx, dev); @@ -1467,7 +1467,7 @@ JNI_FN(MuPDFCore_textAsHtml)(JNIEnv * env, jobject thiz) ctm = fz_identity; sheet = fz_new_stext_sheet(ctx); - text = fz_new_stext_page(ctx, fz_bound_page(ctx, page, &mediabox)); + text = fz_new_stext_page(ctx, fz_bound_page(ctx, pc->page, &mediabox)); dev = fz_new_stext_device(ctx, sheet, text); fz_run_page(ctx, pc->page, dev, &ctm, NULL); fz_close_device(ctx, dev); |