From f5ac2007f11147cdc59bd1a9a3f8d43d72690b2d Mon Sep 17 00:00:00 2001 From: Sebastian Rasmussen Date: Tue, 24 Oct 2017 15:41:38 +0200 Subject: jni: Return correct quadpoints coordinates. --- platform/java/mupdf_native.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'platform/java/mupdf_native.c') diff --git a/platform/java/mupdf_native.c b/platform/java/mupdf_native.c index 1845f4b9..4bf035ff 100644 --- a/platform/java/mupdf_native.c +++ b/platform/java/mupdf_native.c @@ -8403,7 +8403,7 @@ FUN(PDFAnnotation_setQuadPoints)(JNIEnv *env, jobject self, jobject jqps) if (m > 8) m = 8; - (*env)->GetFloatArrayRegion(env, jqp, i * 8, m, qp); + (*env)->GetFloatArrayRegion(env, jqp, 0, m, &qp[i * 8]); if ((*env)->ExceptionCheck(env)) return; if (m < 8) -- cgit v1.2.3