diff options
author | 2020-04-29 21:11:56 +0000 | |
---|---|---|
committer | 2020-04-29 21:11:56 +0000 | |
commit | abbe6d35caf326fca88a01c68a101d428b23f76d (patch) | |
tree | ae206b1c0d98e3e7a61d4eb0e8ec6403cb56a63e | |
parent | 12df9e3d6911f0956b04748fa53aa916e0f7acbf (diff) | |
parent | f63ff6781f5da43d862fa9fd71ad5afbecace74b (diff) |
Merge "Fix the use of pdfium"
-rw-r--r-- | core/jni/android/graphics/pdf/PdfEditor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/jni/android/graphics/pdf/PdfEditor.cpp b/core/jni/android/graphics/pdf/PdfEditor.cpp index 10c30260d7e3..913952f9e76c 100644 --- a/core/jni/android/graphics/pdf/PdfEditor.cpp +++ b/core/jni/android/graphics/pdf/PdfEditor.cpp @@ -111,7 +111,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"); |