From e47769cf2bc9feb30c074c965883f9662540ab3b Mon Sep 17 00:00:00 2001
From: fred ross-perry <fredross-perry@Fred-Ross-Perrys-Computer.local>
Date: Thu, 14 Jul 2016 15:45:10 -0700
Subject: Android viewer - fix bugs in mupdf.c associated with changing APIs.

fz_bound_page needs the correct 2nd argument

pdf_widget_get_type should be pdf_widget_type
---
 platform/android/viewer/jni/mupdf.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/platform/android/viewer/jni/mupdf.c b/platform/android/viewer/jni/mupdf.c
index 9af760b7..55c37e43 100644
--- a/platform/android/viewer/jni/mupdf.c
+++ b/platform/android/viewer/jni/mupdf.c
@@ -2171,7 +2171,7 @@ JNI_FN(MuPDFCore_getFocusedWidgetChoiceOptions)(JNIEnv * env, jobject thiz)
 	if (focus == NULL)
 		return NULL;
 
-	type = pdf_widget_get_type(ctx, focus);
+	type = pdf_widget_type(ctx, focus);
 	if (type != PDF_WIDGET_TYPE_LISTBOX && type != PDF_WIDGET_TYPE_COMBOBOX)
 		return NULL;
 
@@ -2227,7 +2227,7 @@ JNI_FN(MuPDFCore_getFocusedWidgetChoiceSelected)(JNIEnv * env, jobject thiz)
 	if (focus == NULL)
 		return NULL;
 
-	type = pdf_widget_get_type(ctx, focus);
+	type = pdf_widget_type(ctx, focus);
 	if (type != PDF_WIDGET_TYPE_LISTBOX && type != PDF_WIDGET_TYPE_COMBOBOX)
 		return NULL;
 
@@ -2282,7 +2282,7 @@ JNI_FN(MuPDFCore_setFocusedWidgetChoiceSelectedInternal)(JNIEnv * env, jobject t
 	if (focus == NULL)
 		return;
 
-	type = pdf_widget_get_type(ctx, focus);
+	type = pdf_widget_type(ctx, focus);
 	if (type != PDF_WIDGET_TYPE_LISTBOX && type != PDF_WIDGET_TYPE_COMBOBOX)
 		return;
 
@@ -2337,7 +2337,7 @@ JNI_FN(MuPDFCore_getFocusedWidgetTypeInternal)(JNIEnv * env, jobject thiz)
 	if (focus == NULL)
 		return NONE;
 
-	switch (pdf_widget_get_type(ctx, focus))
+	switch (pdf_widget_type(ctx, focus))
 	{
 	case PDF_WIDGET_TYPE_TEXT: return TEXT;
 	case PDF_WIDGET_TYPE_LISTBOX: return LISTBOX;
-- 
cgit v1.2.3