Merge "Fix the use of pdfium" into rvc-dev am: d5f905df8f

Change-Id: I85ed44e08d3ee93b34caf471474aabe1d2cae840
This commit is contained in:
Haibo Huang
2020-05-08 18:33:52 +00:00
committed by Automerger Merge Worker

View File

@@ -110,7 +110,7 @@ static void nativeSetTransformAndClip(JNIEnv* env, jclass thiz, jlong documentPt
jlong transformPtr, jint clipLeft, jint clipTop, jint clipRight, jint clipBottom) {
FPDF_DOCUMENT document = reinterpret_cast<FPDF_DOCUMENT>(documentPtr);
FPDF_PAGE* page = (FPDF_PAGE*) FPDF_LoadPage(document, pageIndex);
FPDF_PAGE page = FPDF_LoadPage(document, pageIndex);
if (!page) {
jniThrowException(env, "java/lang/IllegalStateException",
"cannot open page");